mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-06-01 14:11:43 +00:00
chore[kotlin]: typo
This commit is contained in:
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user