mirror of
https://github.com/corda/corda.git
synced 2025-06-20 16:10:26 +00:00
added get/put float/double to ByteBuffers, as well as duplicate
This commit is contained in:
@ -102,4 +102,12 @@ class DirectByteBuffer extends ByteBuffer {
|
||||
+ " limit: " + limit
|
||||
+ " capacity: " + capacity + ")";
|
||||
}
|
||||
|
||||
@Override
|
||||
public ByteBuffer duplicate() {
|
||||
ByteBuffer b = new DirectByteBuffer(address, capacity, isReadOnly());
|
||||
b.limit(this.limit());
|
||||
b.position(this.position());
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user