| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Runtime.Marshal
Description
Facade over HsBindgen.Runtime.Marshal from the vendored hs-bindgen runtime.
Intended for qualified import:
import qualified SDL3.Sys.Bindgen.Runtime.Marshal as Marshal
For licensing information, see LICENSE_hs-bindgen-runtime in this package's root.
Documentation
new :: (StaticSize a, WriteRaw a) => a -> IO (ForeignPtr a) #
newZero :: (StaticSize a, WriteRaw a) => a -> IO (ForeignPtr a) #
readRawElemOff :: (ReadRaw a, StaticSize a) => Ptr a -> Int -> IO a #
writeRawElemOff :: (StaticSize a, WriteRaw a) => Ptr a -> Int -> a -> IO () #
newtype EquivStorable a #
Constructors
| EquivStorable a |
Instances
| (ReadRaw a, StaticSize a, WriteRaw a) => Storable (EquivStorable a) # | |
Defined in HsBindgen.Runtime.Marshal Methods sizeOf :: EquivStorable a -> Int # alignment :: EquivStorable a -> Int # peekElemOff :: Ptr (EquivStorable a) -> Int -> IO (EquivStorable a) # pokeElemOff :: Ptr (EquivStorable a) -> Int -> EquivStorable a -> IO () # peekByteOff :: Ptr b -> Int -> IO (EquivStorable a) # pokeByteOff :: Ptr b -> Int -> EquivStorable a -> IO () # peek :: Ptr (EquivStorable a) -> IO (EquivStorable a) # poke :: Ptr (EquivStorable a) -> EquivStorable a -> IO () # | |
Minimal complete definition
Nothing
Instances
class StaticSize a where #
Minimal complete definition
Nothing
Instances
Minimal complete definition
Nothing