public class Header
extends chat.dim.type.Data
| Modifier and Type | Field and Description |
|---|---|
MessageLength |
msgLength |
TransactionID |
sn |
MessageType |
type |
| Constructor and Description |
|---|
Header(chat.dim.type.ByteArray data,
MessageType type,
MessageLength length,
TransactionID sn) |
| Modifier and Type | Method and Description |
|---|---|
static Header |
create(MessageType type,
MessageLength length) |
static Header |
create(MessageType type,
MessageLength length,
TransactionID sn) |
static Header |
parse(chat.dim.type.ByteArray data) |
clone, concat, concat, equals, equals, equals, equals, find, find, find, find, find, find, find, find, find, find, find, find, getBuffer, getByte, getBytes, getBytes, getBytes, getOffset, getSize, hashCode, mutableCopy, random, slice, slice, toHexString, toStringpublic final MessageType type
public final MessageLength msgLength
public final TransactionID sn
public Header(chat.dim.type.ByteArray data,
MessageType type,
MessageLength length,
TransactionID sn)
public static Header create(MessageType type, MessageLength length)
public static Header create(MessageType type, MessageLength length, TransactionID sn)
public static Header parse(chat.dim.type.ByteArray data)