92: When writing the buffer, the underlying array is to be used, not the actual ByteBuffer
Contributed-by: jfdenise Reviewed-by: asquare
This commit is contained in:
parent
c343f1be38
commit
b8d9e13f0e
@ -62,7 +62,7 @@ public class StringDecoder {
|
||||
public String write(Buffer buffer) {
|
||||
// The received buffer can be fully consumed
|
||||
ByteBuffer buff = ByteBuffer.allocate(buffer.capacity());
|
||||
buff.put(buffer.underlying());
|
||||
buff.put(buffer.array());
|
||||
buff.flip();
|
||||
ByteBuffer nBuffer = buff;
|
||||
if (remaining != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user