public class Buffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Caps |
caps |
byte[] |
data |
boolean |
duplicate |
static int |
FLAG_DELTA_UNIT |
static int |
FLAG_DISCONT |
int |
flags |
int |
length |
java.lang.Object |
object |
int |
offset |
long |
time_offset |
long |
timestamp |
long |
timestampEnd |
Constructor and Description |
---|
Buffer() |
Modifier and Type | Method and Description |
---|---|
void |
copyData(byte[] data,
int offset,
int length)
copies data into the buffer.
|
static Buffer |
create() |
void |
ensureSize(int length) |
void |
free() |
boolean |
isFlagSet(int flag) |
void |
setFlag(int flag,
boolean val) |
public static final int FLAG_DISCONT
public static final int FLAG_DELTA_UNIT
public int flags
public java.lang.Object object
public byte[] data
public int offset
public int length
public Caps caps
public long time_offset
public long timestamp
public long timestampEnd
public boolean duplicate
public static Buffer create()
public boolean isFlagSet(int flag)
public void setFlag(int flag, boolean val)
public void free()
public void ensureSize(int length)
public void copyData(byte[] data, int offset, int length)
data:
- the bytearray with data to copyoffset:
- offset in the bytearray of first bytelength:
- length of data to copy