bytestring-mmap-0.2.0: mmap support for strict ByteStringsSource codeContentsIndex
System.IO.Posix.MMap.Internal
Portabilitynon-portable -- posix only
Stabilityprovisional
MaintainerDon Stewart <dons@galois.com>
Contents
Converting an mmapped pointer to a ByteString
Low level bindings
Description
Low level mmap access.
Synopsis
unsafePackMMapPtr :: Ptr Word8 -> CSize -> IO ByteString
c_mmap :: CSize -> CInt -> IO (Ptr Word8)
c_munmap :: Ptr Word8 -> CSize -> IO CInt
Converting an mmapped pointer to a ByteString
unsafePackMMapPtr :: Ptr Word8 -> CSize -> IO ByteStringSource
Create a bytestring from a memory mapped Ptr. A finalizer will be associated with the resource, that will call munmap when the storage manager detects that the resource is no longer in use.
Low level bindings
c_mmap :: CSize -> CInt -> IO (Ptr Word8)Source
c_munmap :: Ptr Word8 -> CSize -> IO CIntSource
Produced by Haddock version 2.3.0