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