Function encodeObj

  • encodeObj takes a javascript object and returns its msgpack encoding Note that the encoding sorts the fields alphabetically

    Parameters

    • obj: Record<string | number | symbol, any>

    Returns Uint8Array

    Uint8Array binary representation

    Throws

    Error containing ERROR_CONTAINS_EMPTY_STRING if the object contains empty or zero values

    Deprecated

    Use msgpackRawEncode instead. Note that function does not check for empty values like this one does.

Generated using TypeDoc