[Haskell-cafe] binary IO

Bulat Ziganshin bulatz at HotPOP.com
Tue Dec 27 10:50:46 EST 2005


Hello Pupeno,

Tuesday, December 27, 2005, 6:12:37 PM, you wrote:

>> they do not care about big endian vs little endian.
P> Does it mean that it just reads the data in whatever endianess the computer is 
P> in, right ?

NewBinary read/write data in so-called network format, which is the
same as in your ptrToWord16BE function, although i think that it is
called Little-Endian (last byte is little one). it is the order used
on power/sparc/motorola cpus


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list