dahdit-0.2.0: Binary parsing and serialization with integrated size
Safe HaskellSafe-Inferred
LanguageHaskell2010

Dahdit.Mem

Synopsis

Documentation

newtype IxPtr s Source #

A wrapper over Ptr with an additional phantom type index to align with ST state.

Constructors

IxPtr 

Fields

Instances

Instances details
WriteMem IxPtr Source # 
Instance details

Defined in Dahdit.Mem

Show (IxPtr s) Source # 
Instance details

Defined in Dahdit.Mem

Methods

showsPrec :: Int -> IxPtr s -> ShowS #

show :: IxPtr s -> String #

showList :: [IxPtr s] -> ShowS #

Eq (IxPtr s) Source # 
Instance details

Defined in Dahdit.Mem

Methods

(==) :: IxPtr s -> IxPtr s -> Bool #

(/=) :: IxPtr s -> IxPtr s -> Bool #

Ord (IxPtr s) Source # 
Instance details

Defined in Dahdit.Mem

Methods

compare :: IxPtr s -> IxPtr s -> Ordering #

(<) :: IxPtr s -> IxPtr s -> Bool #

(<=) :: IxPtr s -> IxPtr s -> Bool #

(>) :: IxPtr s -> IxPtr s -> Bool #

(>=) :: IxPtr s -> IxPtr s -> Bool #

max :: IxPtr s -> IxPtr s -> IxPtr s #

min :: IxPtr s -> IxPtr s -> IxPtr s #

class WriteMem q where Source #

Methods

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

Instances details
WriteMem IxPtr Source # 
Instance details

Defined in Dahdit.Mem

WriteMem MutableByteArray Source # 
Instance details

Defined in Dahdit.Mem