PrimitiveType:
    | PrimitiveArrayType
    | NumericType
    | VarNumericType
    | "cstr"
    | "bool"

binary primitive types

  • NumericType various binary representations of number
  • NumericArrayType various binary representations of array of numbers. requires defining array length (number of items) during decoding as args[0]
  • "bytes" a Uint8Array, which requires defining a bytesize length during decoding as args[0]
  • "str" a string, which requires defining a bytesize length during decoding as args[0]
  • "cstr" a null-terminated ("\u0000") string. the null termination byte character is automatically added when encoding
  • "bool" a boolean occupying a single byte