Handbook
Glossary
pack-native ( seq str -- bytes )
Packing and Unpacking Binary Data
Next:
pack-be ( seq str -- bytes )
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 native byte order.
Definition
USING:
endian
kernel
;
IN:
pack
:
pack-native
( seq str -- bytes )
[
pack
]
2curry
with-native-endian
;
inline