ForeignPtr -base

package aligned-foreignptr
An aligned ForeignPtr type. Version 0.1
asForeignPtr :: Text -> IO (ForeignPtr Word16, I16)
text Data.Text.Foreign
O(n) Make a mutable copy of a Text.
unsafeForeignPtrToStorableArray :: Ix i => ForeignPtr e -> (i, i) -> IO (StorableArray i e)
array Data.Array.Unsafe, array Data.Array.Storable
Construct a StorableArray from an arbitrary ForeignPtr. It is the caller's responsibility to ensure that the ForeignPtr points to an area of memory sufficient for the specified bounds.