Handbook
Glossary
read-cbor ( -- obj )
Concise Binary Object Representation (CBOR)
Next:
cbor> ( seq -- obj )
Vocabulary
cbor
Inputs
None
Outputs
obj
an
object
Word description
Decodes an object that was serialized in the CBOR format, reading from an
input-stream
.
Definition
USING:
cbor.private
combinators
io
kernel
math
math.bitwise
;
IN:
cbor
:
read-cbor
( -- obj )
read1
[
5
bits
]
[
-5
shift
3
bits
]
bi
{
{
0
[
read-unsigned
]
}
{
1
[
read-unsigned
neg
1
-
]
}
{
2
[
read-bytestring
]
}
{
3
[
read-textstring
]
}
{
4
[
read-array
]
}
{
5
[
read-map
]
}
{
6
[
read-tagged
]
}
{
7
[
read-float
]
}
}
case
;