Endian mode and hPutBuf & hGetBuf

Simon Marlow simonmar@microsoft.com
Wed, 8 Jan 2003 14:32:01 -0000


> > There would be a similar problem with hPutArray and hGetArray
> > if they were used for reading writing arrays of words other
> > than Word8 (using castIOUArray perhaps?)
>=20
> hPutArray and hGetArray do indeed generate non-portable=20
> files, and they should be documented as such.

Oops, I lied.  hPutArray and hGetArray work on arrays of Word8 only, so
in order to get non-portable results you need to use castIOUArray, which
is already documented as having undefined behaviour.

Cheers,
	Simon