Commit 1fa9dbc3 by krocard Committed by Oliver Woodman

Conserve ByteOrder when growingDecoderInputBuffer

#exo-offload

PiperOrigin-RevId: 302403507
parent d38c6c84
...@@ -137,6 +137,7 @@ public class DecoderInputBuffer extends Buffer { ...@@ -137,6 +137,7 @@ public class DecoderInputBuffer extends Buffer {
} }
// Instantiate a new buffer if possible. // Instantiate a new buffer if possible.
ByteBuffer newData = createReplacementByteBuffer(requiredCapacity); ByteBuffer newData = createReplacementByteBuffer(requiredCapacity);
newData.order(data.order());
// Copy data up to the current position from the old buffer to the new one. // Copy data up to the current position from the old buffer to the new one.
if (position > 0) { if (position > 0) {
data.flip(); data.flip();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment