sdl2-2.5.5.0: Both high- and low-level bindings to the SDL library (version 2.0.6+).

Safe Haskell | Safe-Inferred
Language | Haskell2010

SDL.Raw.Filesystem

Contents

- Filesystem Paths
- File I/O Abstraction

Synopsis

- getBasePath :: MonadIO m => m CString
- getPrefPath :: MonadIO m => CString -> CString -> m CString
- allocRW :: MonadIO m => m (Ptr RWops)
- freeRW :: MonadIO m => Ptr RWops -> m ()
- rwFromConstMem :: MonadIO m => Ptr () -> CInt -> m (Ptr RWops)
- rwFromFP :: MonadIO m => Ptr () -> Bool -> m (Ptr RWops)
- rwFromFile :: MonadIO m => CString -> CString -> m (Ptr RWops)
- rwFromMem :: MonadIO m => Ptr () -> CInt -> m (Ptr RWops)
- rwClose :: MonadIO m => Ptr RWops -> m CInt
- rwRead :: MonadIO m => Ptr RWops -> Ptr () -> CSize -> CSize -> m CSize
- rwSeek :: MonadIO m => Ptr RWops -> Int64 -> CInt -> m Int64
- rwTell :: MonadIO m => Ptr RWops -> m Int64
- rwWrite :: MonadIO m => Ptr RWops -> Ptr () -> CSize -> CSize -> m CSize
- readBE16 :: MonadIO m => Ptr RWops -> m Word16
- readBE32 :: MonadIO m => Ptr RWops -> m Word32
- readBE64 :: MonadIO m => Ptr RWops -> m Word64
- readLE16 :: MonadIO m => Ptr RWops -> m Word16
- readLE32 :: MonadIO m => Ptr RWops -> m Word32
- readLE64 :: MonadIO m => Ptr RWops -> m Word64
- writeBE16 :: MonadIO m => Ptr RWops -> Word16 -> m CSize
- writeBE32 :: MonadIO m => Ptr RWops -> Word32 -> m CSize
- writeBE64 :: MonadIO m => Ptr RWops -> Word64 -> m CSize
- writeLE16 :: MonadIO m => Ptr RWops -> Word16 -> m CSize
- writeLE32 :: MonadIO m => Ptr RWops -> Word32 -> m CSize
- writeLE64 :: MonadIO m => Ptr RWops -> Word64 -> m CSize

# Filesystem Paths

getBasePath :: MonadIO m => m CString Source #

getPrefPath :: MonadIO m => CString -> CString -> m CString Source #

# File I/O Abstraction

allocRW :: MonadIO m => m (Ptr RWops) Source #

freeRW :: MonadIO m => Ptr RWops -> m () Source #

rwFromConstMem :: MonadIO m => Ptr () -> CInt -> m (Ptr RWops) Source #

rwFromFP :: MonadIO m => Ptr () -> Bool -> m (Ptr RWops) Source #

rwFromFile :: MonadIO m => CString -> CString -> m (Ptr RWops) Source #

rwFromMem :: MonadIO m => Ptr () -> CInt -> m (Ptr RWops) Source #

rwClose :: MonadIO m => Ptr RWops -> m CInt Source #

rwRead :: MonadIO m => Ptr RWops -> Ptr () -> CSize -> CSize -> m CSize Source #

rwSeek :: MonadIO m => Ptr RWops -> Int64 -> CInt -> m Int64 Source #

rwTell :: MonadIO m => Ptr RWops -> m Int64 Source #

rwWrite :: MonadIO m => Ptr RWops -> Ptr () -> CSize -> CSize -> m CSize Source #

readBE16 :: MonadIO m => Ptr RWops -> m Word16 Source #

readBE32 :: MonadIO m => Ptr RWops -> m Word32 Source #

readBE64 :: MonadIO m => Ptr RWops -> m Word64 Source #

readLE16 :: MonadIO m => Ptr RWops -> m Word16 Source #

readLE32 :: MonadIO m => Ptr RWops -> m Word32 Source #

readLE64 :: MonadIO m => Ptr RWops -> m Word64 Source #

writeBE16 :: MonadIO m => Ptr RWops -> Word16 -> m CSize Source #

writeBE32 :: MonadIO m => Ptr RWops -> Word32 -> m CSize Source #

writeBE64 :: MonadIO m => Ptr RWops -> Word64 -> m CSize Source #

writeLE16 :: MonadIO m => Ptr RWops -> Word16 -> m CSize Source #

writeLE32 :: MonadIO m => Ptr RWops -> Word32 -> m CSize Source #

writeLE64 :: MonadIO m => Ptr RWops -> Word64 -> m CSize Source #