diff --git a/protocol/src/main/resources/java/ByteBuffer.java b/protocol/src/main/resources/java/ByteBuffer.java index 1c91493e..461e5e6e 100644 --- a/protocol/src/main/resources/java/ByteBuffer.java +++ b/protocol/src/main/resources/java/ByteBuffer.java @@ -32,8 +32,8 @@ public class ByteBuffer { } } - public boolean compatibleRead(int beforereadIndex, int length) { - return length != -1 && readOffset < length + beforereadIndex; + public boolean compatibleRead(int beforeReadIndex, int length) { + return length != -1 && readOffset < length + beforeReadIndex; } // -------------------------------------------------get/set------------------------------------------------- diff --git a/protocol/src/main/resources/kotlin/ByteBuffer.kt b/protocol/src/main/resources/kotlin/ByteBuffer.kt index 6b9644ec..a12acb81 100644 --- a/protocol/src/main/resources/kotlin/ByteBuffer.kt +++ b/protocol/src/main/resources/kotlin/ByteBuffer.kt @@ -26,8 +26,8 @@ class ByteBuffer { } } - fun compatibleRead(beforereadIndex: Int, length: Int): Boolean { - return length != -1 && readOffset < length + beforereadIndex + fun compatibleRead(beforeReadIndex: Int, length: Int): Boolean { + return length != -1 && readOffset < length + beforeReadIndex } // -------------------------------------------------get/set-------------------------------------------------