| But Haskell *really* needs some standard way of reading values in the
| native format on a platform:
What about this specification?
hReadByteArray :: Handle - MutableByteArray a - Int - IO Int
-- Read the specified number of *bytes* into the byte array.
-- Return the
Simon Peyton-Jones wrote:
What about this specification?
hReadByteArray :: Handle - MutableByteArray a - Int - IO Int
[...]
hWriteByteArray :: Handle - MutableByteArray a - Int - IO ()
[...]
Both may block.
Would that do what you want? If so we can add it to IOExts.