Fixed a problem where AbstractChannelBuffer.readBytes(int) does not respect the endianness of the original buffer
This commit is contained in:
parent
df2f9d9d50
commit
549145687e
@ -267,7 +267,7 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
|
||||
if (length == 0) {
|
||||
return ChannelBuffers.EMPTY_BUFFER;
|
||||
}
|
||||
ChannelBuffer buf = ChannelBuffers.buffer(length);
|
||||
ChannelBuffer buf = ChannelBuffers.buffer(order(), length);
|
||||
buf.writeBytes(this, readerIndex, length);
|
||||
readerIndex += length;
|
||||
return buf;
|
||||
|
Loading…
Reference in New Issue
Block a user