public class REDBlock extends java.lang.Object implements ByteArrayBuffer
Constructor and Description |
---|
REDBlock(byte[] buf,
int off,
int len,
byte pt)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Gets the byte buffer that supports this instance.
|
int |
getLength()
Gets the length of the data in the buffer.
|
int |
getOffset()
Gets the offset in the byte buffer where the actual data starts.
|
byte |
getPayloadType()
Gets the payload type of this RED block.
|
boolean |
isInvalid()
Perform checks on the byte buffer represented by this instance and
return true if it is found to be invalid.
|
void |
setLength(int len)
Sets the length of the data in the buffer.
|
void |
setOffset(int off)
Sets the offset of the data in the buffer.
|
public REDBlock(byte[] buf, int off, int len, byte pt)
off
- the offset in the buffer where this RED block startslen
- the length of this RED blockpt
- the payload type of this RED blockpublic byte[] getBuffer()
getBuffer
in interface ByteArrayBuffer
public int getLength()
getLength
in interface ByteArrayBuffer
public void setLength(int len)
setLength
in interface ByteArrayBuffer
len
- the length of the data in the buffer.public void setOffset(int off)
setOffset
in interface ByteArrayBuffer
off
- the offset of the data in the buffer.public boolean isInvalid()
isInvalid
in interface ByteArrayBuffer
public int getOffset()
getOffset
in interface ByteArrayBuffer
public byte getPayloadType()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.