endian vocabulary
Factor handbook ยป Vocabulary index


Documentation
Working with binary data

Metadata
Authors:Doug Coleman


Words

Singleton classes
big-endian
little-endian


Generic words
WordStack effect
>endian( x n -- byte-array )
>native-endian( x n -- byte-array )
endian>( seq -- n )
signed-endian>( seq -- n )
unsigned-endian>( seq -- n )
unsigned-native-endian>( x -- byte-array )


Symbol words
endianness
native-endianness


Ordinary words
WordStack effect
>be( x n -- byte-array )
>le( x n -- byte-array )
be>( seq -- x )
compute-native-endianness( -- class )
le>( seq -- x )
nth-byte( x n -- b )
seq>native-endianness( seq n -- seq' )
signed-be>( seq -- x )
signed-le>( seq -- x )
signed-native-endian>( x n -- byte-array )
with-big-endian( quot -- )
with-endianness( endian quot -- )
with-little-endian( quot -- )
with-native-endian( quot -- )


Class predicate words
WordStack effect
big-endian?( object -- ? )
little-endian?( object -- ? )


Files


Metadata files