chore[kotlin]: typo

This commit is contained in:
godotg
2024-07-06 16:16:55 +08:00
parent 0bad3030f6
commit c09761e2db
2 changed files with 2 additions and 2 deletions
@@ -41,7 +41,7 @@ public class ByteBuffer {
return writeOffset;
}
public void setwriteOffset(int writeIndex) {
public void setWriteOffset(int writeIndex) {
if (writeIndex > buffer.length) {
throw new RuntimeException("writeIndex[" + writeIndex + "] out of bounds exception: readerIndex: " + readOffset +
", writerIndex: " + writeOffset + "(expected: 0 <= readerIndex <= writerIndex <= capacity:" + buffer.length);
@@ -35,7 +35,7 @@ class ByteBuffer {
return writeOffset
}
fun setwriteOffset(writeIndex: Int) {
fun setWriteOffset(writeIndex: Int) {
if (writeIndex > buffer.size) {
throw RuntimeException(
"writeIndex[" + writeIndex + "] out of bounds exception: readerIndex: " + readOffset +