mirror of
https://github.com/tursom/TursomServer.git
synced 2024-12-28 05:40:12 +08:00
fix bug
This commit is contained in:
parent
42c1582035
commit
1d6df8c851
@ -99,7 +99,8 @@ interface ByteBuffer : Closeable {
|
||||
|
||||
fun toString(size: Int): String {
|
||||
val bytes = getBytes(size)
|
||||
readPosition += bytes.size
|
||||
// 将测试的字节返还回来
|
||||
readPosition -= bytes.size
|
||||
return String(bytes)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user