Fixed issue: NETTY-228 Method "ChannelBuffers.wrappedBuffer(ByteBuffer buffer)" does not always honor ByteOrder
This commit is contained in:
parent
e67e99a847
commit
588cfa8518
@ -293,7 +293,7 @@ public class ChannelBuffers {
|
||||
return EMPTY_BUFFER;
|
||||
}
|
||||
if (!buffer.isReadOnly() && buffer.hasArray()) {
|
||||
return wrappedBuffer(buffer.array(), buffer.arrayOffset(),buffer.remaining());
|
||||
return wrappedBuffer(buffer.order(), buffer.array(), buffer.arrayOffset(),buffer.remaining());
|
||||
} else {
|
||||
return new ByteBufferBackedChannelBuffer(buffer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user