Hi,
Sigbjorn Finne (Intl Vendor) wrote:
> the following two ops might be of some use:
>
> PrelHandle.hFillBufBA :: Handle
> -> ByteArray Int -- input buffer
> -> Int -- no. of bytes to read
> -> IO Int -- no. of bytes read
>
> PrelHandle.hPutBufBA :: Handle
> -> ByteArray Int
> -> Int -- no of bytes to blast out
> -> IO ()
Yes, I tried to use them but missed some functions to handle ByteArrays,
particularly
1. How can I get a ByteArray? (freezing a MutableByteArray seems to be a little
strange)
2. How can I thaw a ByteArray to get a MutableByteArray?
> A more comprehensive soln is to use Sven Panne's ghc port of the
> Binary library, which is available via the Green Card home page
Thanks, I'll have a look at that.
Martin Stein