cborΒΆ
meth cbor::decode(Bytes: address): any | errorDecode
Bytesinto a Minilang value, or return an error ifBytescontains invalid CBOR or cannot be decoded into a Minilang value.meth cbor::decode(Bytes: address, Externals: external::set): any | errorDecode
Bytesinto a Minilang value, or return an error ifBytescontains invalid CBOR or cannot be decoded into a Minilang value.meth cbor::decode(Bytes: address, Globals: function): any | errorDecode
Bytesinto a Minilang value, or return an error ifBytescontains invalid CBOR or cannot be decoded into a Minilang value.meth cbor::decode(Bytes: address, Globals: map): any | errorDecode
Bytesinto a Minilang value, or return an error ifBytescontains invalid CBOR or cannot be decoded into a Minilang value.type cbor::decoder < streamA 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::decoderReturns a new CBOR decoder that calls
Callback(Value)whenever a complete CBOR value is written to the decoder.meth cbor::decode(Stream: stream): any | errorTBD