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