This commit is contained in:
tursom 2020-01-21 11:31:38 +08:00
parent f17402f3dc
commit 43836eb8b4

View File

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