From 5b77eed4a67bd9ac4987b0518e7d060a64d62686 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Fri, 22 Nov 2024 09:09:54 -0600 Subject: [PATCH] Write bytes directly --- java/src/json/ext/ByteListTranscoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/json/ext/ByteListTranscoder.java b/java/src/json/ext/ByteListTranscoder.java index dc294f05..41e4e393 100644 --- a/java/src/json/ext/ByteListTranscoder.java +++ b/java/src/json/ext/ByteListTranscoder.java @@ -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; } }