public abstract static class SSU2Payload.Block extends Object
| Constructor and Description |
|---|
Block(int ttype)Create a new block of the given type. |
| Modifier and Type | Method and Description |
|---|---|
abstract int | getDataLength()Return the size of the block data, excluding the 3 byte header. |
int | getTotalLength()Return the total size of the block, including the 3 byte header. |
int | getType()Get the block type. |
String | toString()toString. |
int | write(byte[] tgt,
int off)Write the block to the target array, returning the new offset. |
abstract int | writeData(byte[] tgt,
int off)Write the block data to the target array, returning the new offset. |
public Block(int ttype)
ttype - the block type identifierpublic abstract int getDataLength()
public int getTotalLength()
public int getType()
public int write(byte[] tgt,
int off)tgt - target array to write tooff - offset in the target arraypublic abstract int writeData(byte[] tgt,
int off)tgt - target array to write tooff - offset in the target array