mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +00:00
Implemented ByteBuffer.clear()
This commit is contained in:
parent
b59d234b16
commit
e831a41e90
@ -27,6 +27,12 @@ public class ByteBuffer {
|
||||
return array;
|
||||
}
|
||||
|
||||
public ByteBuffer clear() {
|
||||
position = 0;
|
||||
limit = capacity;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ByteBuffer slice() {
|
||||
ByteBuffer buf = new ByteBuffer(array);
|
||||
buf.arrayOffset = arrayOffset + position;
|
||||
|
Loading…
x
Reference in New Issue
Block a user