endian vocabulary
Factor handbook > Vocabulary index


Summary
Utilities for working with big-endian and little-endian data

Meta-data
Authors:Doug Coleman


Words

Singleton classes
big-endian
little-endian


Generic words
WordStack effect
>endian( obj n -- bytes )
>native-endian( obj n -- bytes )
endian>( seq -- n )
unsigned-endian>( obj -- bytes )
unsigned-native-endian>( obj -- bytes )


Symbol words
endianness
native-endianness


Ordinary words
WordStack effect
compute-native-endianness( -- class )
seq>native-endianness( seq n -- seq' )
signed-endian>( obj n -- bytes )
signed-native-endian>( obj n -- n' )
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