Package com.fluendo.jst
Class Buffer
- java.lang.Object
-
- com.fluendo.jst.Buffer
-
public class Buffer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Buffer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
FLAG_DISCONT
public static final int FLAG_DISCONT
- See Also:
- Constant Field Values
-
FLAG_DELTA_UNIT
public static final int FLAG_DELTA_UNIT
- See Also:
- Constant Field Values
-
flags
public int flags
-
object
public java.lang.Object object
-
data
public byte[] data
-
offset
public int offset
-
length
public int length
-
caps
public Caps caps
-
time_offset
public long time_offset
-
timestamp
public long timestamp
-
timestampEnd
public long timestampEnd
-
duplicate
public boolean duplicate
-
-
Method Detail
-
create
public static Buffer create()
-
isFlagSet
public boolean isFlagSet(int flag)
-
setFlag
public void setFlag(int flag, boolean val)
-
free
public void free()
-
ensureSize
public void ensureSize(int length)
-
copyData
public void copyData(byte[] data, int offset, int length)
copies data into the buffer.- Parameters:
data
- : the bytearray with data to copyoffset
- : offset in the bytearray of first bytelength
- : length of data to copy
-
-