octane-0.13.3: Parse Rocket League replays.

Safe HaskellNone
LanguageHaskell2010

Octane.Type.Stream

Synopsis

Documentation

newtype Stream Source #

A stream of bits.

Constructors

Stream ByteString 

Instances

Eq Stream Source # 

Methods

(==) :: Stream -> Stream -> Bool #

(/=) :: Stream -> Stream -> Bool #

Show Stream Source #

Doesn't show the actual bytes to avoid dumping tons of text.

>>> show (Stream "\x00")
"Stream {unpack = \"1 byte\"}"
>>> show (Stream "\x00\x00")
"Stream {unpack = \"2 bytes\"}"
Generic Stream Source # 

Associated Types

type Rep Stream :: * -> * #

Methods

from :: Stream -> Rep Stream x #

to :: Rep Stream x -> Stream #

Binary Stream Source #

Prefixed by a length in bytes. Each byte is reversed such that 0b01234567 is actually 0b76543210.

>>> Binary.decode "\x01\x00\x00\x00\x0f" :: Stream
Stream {unpack = "1 byte"}
>>> Binary.encode (Stream "\xf0")
"\SOH\NUL\NUL\NUL\SI"

Methods

put :: Stream -> Put #

get :: Get Stream #

putList :: [Stream] -> Put #

NFData Stream Source # 

Methods

rnf :: Stream -> () #

type Rep Stream Source # 
type Rep Stream = D1 (MetaData "Stream" "Octane.Type.Stream" "octane-0.13.3-GnboydEgdVpJh0hfzYOLZA" True) (C1 (MetaCons "Stream" PrefixI True) (S1 (MetaSel (Just Symbol "unpack") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))