Add toString methods to the buffer implementations
This commit is contained in:
parent
53d2e4b955
commit
a4ecc1b184
@ -115,6 +115,11 @@ final class CompositeBuf extends RcSupport<Buf, CompositeBuf> implements Buf {
|
||||
capacity = (int) cap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Buf[roff:" + roff + ", woff:" + woff + ", cap:" + capacity + ']';
|
||||
}
|
||||
|
||||
@Override
|
||||
public Buf order(ByteOrder order) {
|
||||
for (Buf buf : bufs) {
|
||||
|
@ -78,6 +78,11 @@ class MemSegBuf extends RcSupport<Buf, MemSegBuf> implements Buf {
|
||||
isBigEndian = ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Buf[roff:" + roff + ", woff:" + woff + ", cap:" + seg.byteSize() + ']';
|
||||
}
|
||||
|
||||
@Override
|
||||
public Buf order(ByteOrder order) {
|
||||
isBigEndian = order == ByteOrder.BIG_ENDIAN;
|
||||
|
Loading…
Reference in New Issue
Block a user