rattletrap-6.0.2: Parse and generate Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Rattletrap.Decode.Common

Synopsis

Documentation

decodeWhen :: (Applicative m, Alternative f) => Bool -> m a -> m (f a) Source #

getFloatle :: Get Float #

Read a Float in little endian IEEE-754 format.

getByteString :: Int -> Get ByteString #

An efficient get method for strict ByteStrings. Fails if fewer than n bytes are left in the input. If n <= 0 then the empty string is returned.

getInt8 :: Get Int8 #

Read an Int8 from the monad state

getInt32le :: Get Int32 #

Read an Int32 in little endian format.

getInt64le :: Get Int64 #

Read an Int64 in little endian format.

getWord8 :: Get Word8 #

Read a Word8 from the monad state

getWord32le :: Get Word32 #

Read a Word32 in little endian format

getWord64le :: Get Word64 #

Read a Word64 in little endian format

getBool :: BitGet Bool #

Get 1 bit as a Bool.

getWord16be :: Int -> BitGet Word16 #

Get n bits as a Word16. n must be within [0..16].

getWord32be :: Int -> BitGet Word32 #

Get n bits as a Word32. n must be within [0..32].