Create a packet from a deserialized packet message.
a deserialized object containing a packet header and optional body
Create a packet from a packet body.
the id of the requesting packet to set on the header if this packet is a response
Calculating the packet checksum using its JSON representation hash first 4 bytes.
Serialize this packet to binary Buffer.
Buffer representation of the packet
Generated using TypeDoc