Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class FromForeignRegion a where
- type ForeignRegion = (ForeignPtr Word8, Int, Int)
- mmapFromForeignRegion :: FromForeignRegion a => FilePath -> IO a
Documentation
class FromForeignRegion a where Source #
Class for datastructures that can be created from a foreign region
fromForeignRegion :: ForeignRegion -> a Source #
Create a value of type @a from a foreign region.
Instances
FromForeignRegion ByteString Source # | |
Defined in HaskellWorks.Data.FromForeignRegion | |
FromForeignRegion (Vector Word8) Source # | |
Defined in HaskellWorks.Data.FromForeignRegion | |
FromForeignRegion (Vector Word16) Source # | |
Defined in HaskellWorks.Data.FromForeignRegion | |
FromForeignRegion (Vector Word32) Source # | |
Defined in HaskellWorks.Data.FromForeignRegion | |
FromForeignRegion (Vector Word64) Source # | |
Defined in HaskellWorks.Data.FromForeignRegion | |
(FromForeignRegion a, FromForeignRegion b) => FromForeignRegion (a :*: b) Source # | |
Defined in HaskellWorks.Data.FromForeignRegion fromForeignRegion :: ForeignRegion -> a :*: b Source # |
type ForeignRegion = (ForeignPtr Word8, Int, Int) Source #
mmapFromForeignRegion :: FromForeignRegion a => FilePath -> IO a Source #