Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pre-value and post-value byte alignments
- data Filler
- fillerLength :: Num a => Filler -> a
- data PreAligned a = PreAligned {}
- preAligned :: a -> PreAligned a
- data PostAligned a = PostAligned {
- postValue :: a
- postFiller :: Filler
- postAligned :: a -> PostAligned a
- postAlignedDecoder :: Get b -> Get b
Documentation
A meaningless sequence of 0 bits terminated with a 1 bit (easier to implement than the reverse) Useful to align an encoded value at byte/word boundaries.
fillerLength :: Num a => Filler -> a Source #
Length of a filler in bits
data PreAligned a Source #
A Pre aligned value, a value preceded by a filler
Eq a => Eq (PreAligned a) Source # | |
Ord a => Ord (PreAligned a) Source # | |
Show a => Show (PreAligned a) Source # | |
Generic (PreAligned a) Source # | |
NFData a => NFData (PreAligned a) Source # | |
Flat a => Flat (PreAligned a) Source # | |
type Rep (PreAligned a) Source # | |
preAligned :: a -> PreAligned a Source #
Pre align a value
data PostAligned a Source #
A Post aligned value, a value followed by a filler
PostAligned | |
|
Eq a => Eq (PostAligned a) Source # | |
Ord a => Ord (PostAligned a) Source # | |
Show a => Show (PostAligned a) Source # | |
Generic (PostAligned a) Source # | |
NFData a => NFData (PostAligned a) Source # | |
Flat a => Flat (PostAligned a) Source # | |
type Rep (PostAligned a) Source # | |
postAligned :: a -> PostAligned a Source #
Post align a value
postAlignedDecoder :: Get b -> Get b Source #