JsonByteBufferReader

This commit is contained in:
redkale
2024-10-22 14:16:42 +08:00
parent f9744b8480
commit f8b8429044

View File

@@ -76,12 +76,7 @@ public class JsonByteBufferReader extends JsonReader {
this.cacheChar = 0; this.cacheChar = 0;
return ch; return ch;
} }
if (this.currentBuffer != null) {
int remain = this.currentBuffer.remaining();
if (remain == 0 && this.currBufIndex + 1 >= this.buffers.length) {
return 0;
}
}
byte b = nextByte(); byte b = nextByte();
if (b >= 0) { // 1 byte, 7 bits: 0xxxxxxx if (b >= 0) { // 1 byte, 7 bits: 0xxxxxxx
return (char) b; return (char) b;