Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype IxPtr s = IxPtr {}
- class ReadMem r where
- indexMemInBytes :: LiftedPrim a => r -> ByteCount -> a
- cloneArrayMemInBytes :: r -> ByteCount -> ByteCount -> ByteArray
- readSBSMem :: ReadMem r => r -> ByteCount -> ByteCount -> ShortByteString
- viewSBSMem :: ShortByteString -> ByteArray
- viewBSMem :: ByteString -> Ptr Word8
- viewVecMem :: Vector Word8 -> Ptr Word8
- class WriteMem q where
- writeMemInBytes :: LiftedPrim a => a -> q s -> ByteCount -> ST s ()
- copyArrayMemInBytes :: ByteArray -> ByteCount -> ByteCount -> q s -> ByteCount -> ST s ()
- setMemInBytes :: LiftedPrim a => ByteCount -> a -> q s -> ByteCount -> ST s ()
- releaseMem :: q s -> Maybe (IO ())
- writeSBSMem :: WriteMem q => ShortByteString -> ByteCount -> q s -> ByteCount -> ST s ()
- allocArrayMem :: ByteCount -> ST s (MutableByteArray s)
- allocPtrMem :: ByteCount -> ST s (IxPtr s)
- freezeSBSMem :: MutableByteArray s -> ByteCount -> ByteCount -> ST s ShortByteString
- freezeBSMem :: IxPtr s -> ByteCount -> ByteCount -> ST s ByteString
- freezeVecMem :: IxPtr s -> ByteCount -> ByteCount -> ST s (Vector Word8)
Documentation
Instances
WriteMem IxPtr Source # | |
Defined in Dahdit.Mem writeMemInBytes :: LiftedPrim a => a -> IxPtr s -> ByteCount -> ST s () Source # copyArrayMemInBytes :: ByteArray -> ByteCount -> ByteCount -> IxPtr s -> ByteCount -> ST s () Source # setMemInBytes :: LiftedPrim a => ByteCount -> a -> IxPtr s -> ByteCount -> ST s () Source # | |
Show (IxPtr s) Source # | |
Eq (IxPtr s) Source # | |
Ord (IxPtr s) Source # | |
class ReadMem r where Source #
indexMemInBytes :: LiftedPrim a => r -> ByteCount -> a Source #
cloneArrayMemInBytes :: r -> ByteCount -> ByteCount -> ByteArray Source #
Instances
ReadMem ByteArray Source # | |
Defined in Dahdit.Mem indexMemInBytes :: LiftedPrim a => ByteArray -> ByteCount -> a Source # cloneArrayMemInBytes :: ByteArray -> ByteCount -> ByteCount -> ByteArray Source # | |
ReadMem (Ptr Word8) Source # | |
Defined in Dahdit.Mem indexMemInBytes :: LiftedPrim a => Ptr Word8 -> ByteCount -> a Source # cloneArrayMemInBytes :: Ptr Word8 -> ByteCount -> ByteCount -> ByteArray Source # |
readSBSMem :: ReadMem r => r -> ByteCount -> ByteCount -> ShortByteString Source #
class WriteMem q where Source #
writeMemInBytes :: LiftedPrim a => a -> q s -> ByteCount -> ST s () Source #
copyArrayMemInBytes :: ByteArray -> ByteCount -> ByteCount -> q s -> ByteCount -> ST s () Source #
setMemInBytes :: LiftedPrim a => ByteCount -> a -> q s -> ByteCount -> ST s () Source #
releaseMem :: q s -> Maybe (IO ()) Source #
Instances
WriteMem IxPtr Source # | |
Defined in Dahdit.Mem writeMemInBytes :: LiftedPrim a => a -> IxPtr s -> ByteCount -> ST s () Source # copyArrayMemInBytes :: ByteArray -> ByteCount -> ByteCount -> IxPtr s -> ByteCount -> ST s () Source # setMemInBytes :: LiftedPrim a => ByteCount -> a -> IxPtr s -> ByteCount -> ST s () Source # | |
WriteMem MutableByteArray Source # | |
Defined in Dahdit.Mem writeMemInBytes :: LiftedPrim a => a -> MutableByteArray s -> ByteCount -> ST s () Source # copyArrayMemInBytes :: ByteArray -> ByteCount -> ByteCount -> MutableByteArray s -> ByteCount -> ST s () Source # setMemInBytes :: LiftedPrim a => ByteCount -> a -> MutableByteArray s -> ByteCount -> ST s () Source # releaseMem :: MutableByteArray s -> Maybe (IO ()) Source # |
writeSBSMem :: WriteMem q => ShortByteString -> ByteCount -> q s -> ByteCount -> ST s () Source #
allocArrayMem :: ByteCount -> ST s (MutableByteArray s) Source #
freezeSBSMem :: MutableByteArray s -> ByteCount -> ByteCount -> ST s ShortByteString Source #
freezeBSMem :: IxPtr s -> ByteCount -> ByteCount -> ST s ByteString Source #