mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Add debug information for ByteBuffer
This commit is contained in:
parent
67faa23d83
commit
958d39aa03
@ -201,4 +201,8 @@ public class ByteBuffer {
|
||||
if (position < 0 || position+amount > limit)
|
||||
throw new IndexOutOfBoundsException();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "(ByteBuffer with array: " + array + " arrayOffset: " + arrayOffset + " position: " + position + " remaining; " + remaining() + ")";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user