com.fluendo.jst

Class Buffer

public class Buffer extends Object

Field Summary
Capscaps
byte[]data
booleanduplicate
intflags
static intFLAG_DELTA_UNIT
static intFLAG_DISCONT
intlength
Objectobject
intoffset
longtimestamp
longtimestampEnd
longtime_offset
Constructor Summary
Buffer()
Method Summary
voidcopyData(byte[] data, int offset, int length)
copies data into the buffer.
static Buffercreate()
voidensureSize(int length)
voidfree()
booleanisFlagSet(int flag)
voidsetFlag(int flag, boolean val)

Field Detail

caps

public Caps caps

data

public byte[] data

duplicate

public boolean duplicate

flags

public int flags

FLAG_DELTA_UNIT

public static final int FLAG_DELTA_UNIT

FLAG_DISCONT

public static final int FLAG_DISCONT

length

public int length

object

public Object object

offset

public int offset

timestamp

public long timestamp

timestampEnd

public long timestampEnd

time_offset

public long time_offset

Constructor Detail

Buffer

public Buffer()

Method Detail

copyData

public void copyData(byte[] data, int offset, int length)
copies data into the buffer.

Parameters: data: the bytearray with data to copy offset: offset in the bytearray of first byte length: length of data to copy

create

public static Buffer create()

ensureSize

public void ensureSize(int length)

free

public void free()

isFlagSet

public boolean isFlagSet(int flag)

setFlag

public void setFlag(int flag, boolean val)