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:
@ -89,4 +89,12 @@ class ArrayByteBuffer extends ByteBuffer {
|
||||
+ " limit: " + limit
|
||||
+ " capacity: " + capacity + ")";
|
||||
}
|
||||
|
||||
@Override
|
||||
public ByteBuffer duplicate() {
|
||||
ByteBuffer b = new ArrayByteBuffer(array, arrayOffset, capacity, isReadOnly());
|
||||
b.limit(this.limit());
|
||||
b.position(this.position());
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user