Frame

ARNet protocol network frame serializing and deserializing functions.
Source:

Methods

(static) pack(type, id, seq, data) → {Buffer}

Source:
Pack an ARNet network frame using provided parameters.
Parameters:
Name Type Description
type uint8
id uint8
seq uint8
data Buffer
Returns:
Type
Buffer

(static) upack(buffer) → {Object}

Source:
Unpack an ARNet network frame packet.
Parameters:
Name Type Description
buffer Buffer ARNetwork frame to unpack
Returns:
Type
Object