cborΒΆ
meth cbor::decode(Bytes: address): any | error
Decode
Bytes
into a Minilang value, or return an error ifBytes
contains invalid CBOR or cannot be decoded into a Minilang value.meth cbor::decode(Bytes: address, Externals: external::set): any | error
Decode
Bytes
into a Minilang value, or return an error ifBytes
contains invalid CBOR or cannot be decoded into a Minilang value.meth cbor::decode(Bytes: address, Globals: function): any | error
Decode
Bytes
into a Minilang value, or return an error ifBytes
contains invalid CBOR or cannot be decoded into a Minilang value.meth cbor::decode(Bytes: address, Globals: map): any | error
Decode
Bytes
into a Minilang value, or return an error ifBytes
contains invalid CBOR or cannot be decoded into a Minilang value.type cbor::decoder < stream
A CBOR decoder that can be written to as a stream and calls a user-supplied callback whenever a complete value is decoded.
fun cbor::decoder(Callback: function): cbor::decoder
Returns a new CBOR decoder that calls
Callback(Value)
whenever a complete CBOR value is written to the decoder.meth cbor::decode(Stream: stream): any | error
TBD