pack-native ( seq str -- bytes ) - Factor Documentation

pack-native ( seq str -- bytes )
Packing and Unpacking Binary Data



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

AltStyle によって変換されたページ (->オリジナル) /