Word description Defines a struct where endian-unaware types become little-endian types. Note that endian-aware types will override the little-endianness of this struct declaration; big-endian types will stay big-endian. On little-endian platforms, the endian-unaware types will not change since they are the correct endianness already.
! When run on a little-endian platform, this struct should prettyprint the same as defined
! The output of this example is from a little-endian platform
USE: alien.endian
LE-STRUCT: s1 { a int } { b be32 } ;
\ s1 see USING: alien.c-types alien.endian classes.struct ;
IN: scratchpad
STRUCT: s1 { a int initial: 0 } { b be32 initial: 0 } ;