public class FixedByteArrayBuffer extends AbstractFixedByteArrayBuffer
Modifier and Type | Field and Description |
---|---|
static FixedByteArrayBuffer |
EMPTY
An empty slice.
|
Constructor and Description |
---|
FixedByteArrayBuffer(byte[] buf,
int off,
int len)
Create a slice of a byte[].
|
FixedByteArrayBuffer(int capacity)
Create an instance backed by a fixed capacity byte[].
|
Modifier and Type | Method and Description |
---|---|
byte[] |
array()
The backing byte[].
|
asByteBuffer, get, get, getBit, getByte, getDataInput, getDouble, getFloat, getInputBitStream, getInt, getLong, getShort, len, off, put, put, putByte, putDouble, putFloat, putInt, putLong, putShort, rangeCheck, setBit, slice, toByteArray, wrap, writeOn, writeOn, writeOn
public static final transient FixedByteArrayBuffer EMPTY
public FixedByteArrayBuffer(int capacity)
capacity
- The capacity of the backing byte[].public FixedByteArrayBuffer(byte[] buf, int off, int len)
buf
- The byte[].off
- The starting offset of the slice.len
- The length of the slice.public final byte[] array()
IByteArraySlice
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.