mirror of
https://github.com/corda/corda.git
synced 2025-06-14 13:18:18 +00:00
added get/put float/double to ByteBuffers, as well as duplicate
This commit is contained in:
@ -46,6 +46,14 @@ class FixedArrayByteBuffer extends DirectByteBuffer {
|
||||
return new FixedArrayByteBuffer
|
||||
(address + position, array, arrayOffset + position, remaining(), true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ByteBuffer duplicate() {
|
||||
ByteBuffer b = new FixedArrayByteBuffer(address, array, arrayOffset, capacity, isReadOnly());
|
||||
b.limit(this.limit());
|
||||
b.position(this.position());
|
||||
return b;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "(FixedArrayByteBuffer with address: " + address
|
||||
|
Reference in New Issue
Block a user