Hello all,

I have a use-case where I want to convert `ByteArray#` to
`MutableByteArray#`
without the copy overhead.

Is the underlying memory structure of `ByteArray#` and `MutableByteArray#`
the
same?

If I can guarantee that I won't mutate my `MutableByteArray#`, can I use
`unsafeCoerce#` on `ByteArray#` and treat it as `MutableByteArray#`?

Best,
Adithya
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to