Handbook
Glossary
pack-le ( seq str -- bytes )
Packing and Unpacking Binary Data
Prev:
pack-be ( seq str -- bytes )
Next:
unpack-native ( bytes str -- seq )
Vocabulary
pack
Inputs
seq
a sequence of field values
str
a format string
Outputs
bytes
a byte sequence
Word description
Packs the values in
seq
according to the field formats described by
str
into a byte sequence, using little-endian byte order.
Definition
USING:
endian
kernel
;
IN:
pack
:
pack-le
( seq str -- bytes )
[
pack
]
2curry
with-little-endian
;
inline