Skip to content

Commit

Permalink
Write bytes directly
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Nov 22, 2024
1 parent d798d79 commit 5b77eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/json/ext/ByteListTranscoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected void quoteStart() {
*/
protected void quoteStop(int endPos) throws IOException {
if (quoteStart != -1) {
out.write(src.bytes(), quoteStart, endPos - quoteStart);
out.write(src.unsafeBytes(), src.begin() + quoteStart, endPos - quoteStart);
quoteStart = -1;
}
}
Expand Down

0 comments on commit 5b77eed

Please sign in to comment.