public static interface CustomByteArrayFrontCodedList.BackingBuffer extends Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
void |
arraycopy(int pos,
byte[] dest,
int destPos,
int len)
Copy data from the backing buffer into the caller's array.
|
CustomByteArrayFrontCodedList.BackingBuffer |
clone()
Clone the backing buffer.
|
byte |
get(int i)
Return the byte value at the specified index.
|
int |
readInt(int pos)
Reads a coded length.
|
int |
size()
The size of the backing buffer in bytes.
|
byte[] |
toArray()
Return a copy of the data in the backing buffer.
|
int |
writeOn(OutputStream out)
Write the data on the output stream.
|
int |
writeOn(OutputStream out,
int off,
int len)
Write len bytes starting at off onto the caller's
stream.
|
byte get(int i)
i
- The index.int readInt(int pos)
pos
- The starting position.pos
.void arraycopy(int pos, byte[] dest, int destPos, int len)
pos
- The starting position in the backing buffer.dest
- The caller's array.destPos
- The starting position in the caller's array.len
- The #of bytes to copy.int size()
byte[] toArray()
int writeOn(OutputStream out) throws IOException
out
- The output stream.IOException
int writeOn(OutputStream out, int off, int len) throws IOException
out
- The output stream.off
- The index of the first byte to be written.len
- The #of bytes to be written.IOException
CustomByteArrayFrontCodedList.BackingBuffer clone()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.