public abstract static class RatchetPayload.Block extends Object
| Constructor and Description |
|---|
Block(int ttype)Block of the given type. |
| Modifier and Type | Method and Description |
|---|---|
abstract int | getDataLength()Data size of the block. |
int | getTotalLength()Total size of the block. |
String | toString()Debug string with block type and length. |
int | write(byte[] tgt,
int off)Writes the block header and data to the target. |
abstract int | writeData(byte[] tgt,
int off)Write the block data. |
public Block(int ttype)
ttype - the block typepublic abstract int getDataLength()
public int getTotalLength()
public String toString()
public int write(byte[] tgt,
int off)public abstract int writeData(byte[] tgt,
int off)tgt - the target bufferoff - the offset