This commit is contained in:
tursom 2021-01-20 15:12:28 +08:00
parent 0de8e2eaf7
commit fe25639e87

View File

@ -99,7 +99,7 @@ interface ByteBuffer : Closeable {
fun toString(size: Int): String {
val bytes = getBytes(size)
readPosition -= bytes.size
readPosition += bytes.size
return String(bytes)
}