Handbook
Glossary
cbor> ( seq -- obj )
Concise Binary Object Representation (CBOR)
Prev:
read-cbor ( -- obj )
Next:
write-cbor ( obj -- )
Vocabulary
cbor
Inputs
seq
a
sequence
Outputs
obj
an
object
Word description
Decodes an object from the CBOR format, represented as a
byte-array
or
string
.
Definition
IN:
cbor
GENERIC:
cbor>
( seq -- obj )
Methods
USING:
byte-arrays
cbor
io.encodings.binary
io.streams.byte-array
;
M:
byte-array
cbor>
binary
[
read-cbor
]
with-byte-reader
;
USING:
cbor
io.streams.string
strings
;
M:
string
cbor>
[
read-cbor
]
with-string-reader
;