Skip to content

MessagePackExt

[Source]

A MessagePack extension type. The ext_type field is the type identifier stored as a U8. User-defined types occupy 0 through 127. The MessagePack spec reserves -1 through -128 (signed) for predefined types (e.g., -1 for timestamps); these appear in ext_type as their unsigned equivalents (0xFF for -1, 0x80 for -128). The data field contains the raw extension bytes.

class val MessagePackExt

Constructors

create

[Source]

new val create(
  ext_type': U8 val,
  data': Array[U8 val] val)
: MessagePackExt val^

Parameters

Returns


Public fields

let ext_type: U8 val

[Source]


let data: Array[U8 val] val

[Source]