Portability | non-portable -- posix only |
---|---|
Stability | provisional |
Maintainer | Don Stewart <dons@galois.com> |
Safe Haskell | Safe-Infered |
Low level mmap access.
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.