Handbook
Glossary
object>bytes ( obj -- bytes )
Binary object serialization
Prev:
deserialize ( -- obj )
Next:
bytes>object ( bytes -- obj )
Vocabulary
serialize
Inputs
obj
object to serialize
Outputs
bytes
a
byte-array
Word description
Serializes the object to a byte array.
Definition
USING:
io.encodings.binary
io.streams.byte-array
;
IN:
serialize
:
object>bytes
( obj -- bytes )
binary
[
serialize
]
with-byte-writer
;