optimize next
This commit is contained in:
parent
94bc5d1f04
commit
d4f3b141ce
@ -3355,7 +3355,7 @@ final class JSONReaderUTF16
|
||||
}
|
||||
|
||||
public static int next(JSONReaderUTF16 jsonReader, char[] bytes, int offset, int end) {
|
||||
int ch = offset >= end ? EOI : bytes[offset++];
|
||||
int ch = offset == end ? EOI : bytes[offset++];
|
||||
while (ch == '\0' || (ch <= ' ' && ((1L << ch) & SPACE) != 0)) {
|
||||
ch = offset == end ? EOI : bytes[offset++];
|
||||
}
|
||||
|
@ -4490,7 +4490,7 @@ class JSONReaderUTF8
|
||||
}
|
||||
|
||||
public static int next(JSONReaderUTF8 jsonReader, byte[] bytes, int offset, int end) {
|
||||
int ch = offset >= end ? EOI : bytes[offset++];
|
||||
int ch = offset == end ? EOI : bytes[offset++];
|
||||
while (ch == '\0' || (ch <= ' ' && ((1L << ch) & SPACE) != 0)) {
|
||||
ch = offset == end ? EOI : bytes[offset++];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user