public static class RatchetPayload.DateTimeBlock extends RatchetPayload.Block
| Constructor and Description |
|---|
DateTimeBlock(long time)Timestamp carried by this block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Data length of the block. |
(package private) void | setTime(long time)Set the timestamp, for reuse. |
int | writeData(byte[] tgt,
int off)Writes the block to the output buffer at the given offset. |
getTotalLength, toString, writepublic DateTimeBlock(long time)
time - the timestamppublic int getDataLength()
getDataLength in class RatchetPayload.Blockvoid setTime(long time)
time - the timestamppublic int writeData(byte[] tgt,
int off)writeData in class RatchetPayload.Blocktgt - the target bufferoff - the offset