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