public interface IManagedByteArray extends IByteArraySlice
| Modifier and Type | Method and Description |
|---|---|
IManagedByteArray |
append(byte b)
Append a byte into the managed byte[].
|
IManagedByteArray |
append(byte[] a)
Append data into the managed byte[].
|
IManagedByteArray |
append(byte[] a,
int off,
int len)
Append data into the managed byte[].
|
int |
capacity()
Return the capacity of the backing buffer.
|
void |
ensureCapacity(int capacity)
Ensure that the buffer capacity is a least capacity total bytes.
|
void |
ensureFree(int len)
Ensure that at least len bytes are free in the buffer.
|
IManagedByteArray |
reset()
Reset the buffer length to zero.
|
array, len, off, toByteArrayIManagedByteArray reset()
IManagedByteArray append(byte b)
b - The byte.IManagedByteArray append(byte[] a)
a - The source data.IManagedByteArray append(byte[] a, int off, int len)
a - The source data.off - The offset of the first byte to be copied.len - The #of bytes to be copied.int capacity()
void ensureFree(int len)
This operation is equivalent to
ensureCapacity(len() + len)and the latter is often used as an optimization.
len - The minimum #of free bytes.void ensureCapacity(int capacity)
capacity - The minimum #of bytes in the buffer.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.