Pack(formatStr, msg)
⇒ Uint8Array
StructsCalcSize(format)
⇒ number
Unpack(format, msg)
Uint8Array
structs
Uint8Array
- - The packed message in a byte array.error
- The error encountered during packing.Param | Type | Description |
---|---|---|
formatStr | string | The format string. |
msg | Array.<any> | The message to be packed. |
number
structs
number
- - The number of bytes needed to pack the values.error
- The error encountered during calculation.Param | Type | Description |
---|---|---|
format | string | The format string. |
structs
error
- The error encountered during unpacking.Param | Type | Description |
---|---|---|
format | string | The format string. |
msg | Uint8Array | The packed message to be unpacked. |