CompositeChannelBuffer.toByteBuffer() should return the ByteBuffer with the same order
This commit is contained in:
parent
40bf0a63f1
commit
f22f0b2035
@ -488,7 +488,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
|
||||
}
|
||||
|
||||
ByteBuffer[] buffers = toByteBuffers(index, length);
|
||||
ByteBuffer merged = ByteBuffer.allocate(length);
|
||||
ByteBuffer merged = ByteBuffer.allocate(length).order(order());
|
||||
for (ByteBuffer b: buffers) {
|
||||
merged.put(b);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user