[AD] Endianness in file routines

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2003-03-13, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> 
> To make reading/writing of binary data completely portable, you have to
> use the same function you used for writing. I.e. if you use pack_iputw,
> read with pack_igetw. In this case Allegro will guarantee that the same
> values are read in, no matter if int-size of endianess are different.

This reminds me, has anyone checked this?  It looks to me like the code
assumes little endianness.

-- 
王浩禎




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/