Handbook
Glossary
unpack-be ( bytes str -- seq )
Packing and Unpacking Binary Data
Prev:
unpack-native ( bytes str -- seq )
Next:
unpack-le ( bytes str -- seq )
Vocabulary
pack
Inputs
bytes
a byte sequence
str
a format string
Outputs
seq
a sequence of field values
Word description
Reads packed data from
bytes
according to the field formats described by
str
and outputs a sequence containing the unpacked values. Packed data is assumed to be big-endian.
Definition
USING:
endian
kernel
;
IN:
pack
:
unpack-be
( bytes str -- seq )
[
unpack
]
2curry
with-big-endian
;
inline