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