rattletrap-11.2.13: Parse and generate Rocket League replays.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Rattletrap.Type.Section

Synopsis

Documentation

data Section a Source #

A section is a large piece of a Replay. It has a 32-bit size (in bytes), a 32-bit CRC (see Rattletrap.Utility.Crc), and then a bunch of data (the body). This interface is provided so that you don't have to think about the size and CRC.

Constructors

Section 

Fields

Instances

Instances details
FromJSON a => FromJSON (Section a) Source # 
Instance details

Defined in Rattletrap.Type.Section

ToJSON a => ToJSON (Section a) Source # 
Instance details

Defined in Rattletrap.Type.Section

Show a => Show (Section a) Source # 
Instance details

Defined in Rattletrap.Type.Section

Methods

showsPrec :: Int -> Section a -> ShowS #

show :: Section a -> String #

showList :: [Section a] -> ShowS #

Eq a => Eq (Section a) Source # 
Instance details

Defined in Rattletrap.Type.Section

Methods

(==) :: Section a -> Section a -> Bool #

(/=) :: Section a -> Section a -> Bool #

create :: (a -> BytePut) -> a -> Section a Source #

bytePut :: (a -> BytePut) -> Section a -> BytePut Source #

Given a way to put the body, puts a section. This will also put the size and CRC.