add `getBufferWithoutReset()` in `TextBuffer` (needed for non-blocking decoders)
@@ -225,6 +225,13 @@ public final class TextBuffer
}
+ /**
+ * @since 2.9
+ */
+ public char[] getBufferWithoutReset() {
+ return _currentSegment;
+ }
+
/**
* Helper method used to find a buffer to use, ideally one
* recycled earlier.
