Module
Data.Byte.Codec
- Package
- purescript-byte-codec
- Repository
- athanclark/purescript-byte-codec
This is a synthetic interface on top of the lowest-level view JavaScript has over bytes - integers between 0 and 255.
The Flag
system is useful for building a byte in a typesafe way; where each "flag" is actually a bit in the integer's value.
The toBinary
/ fromBinary
API is useful for deserializing into a monomorphic type - an array of bits (as Boolean
s), where the index reflects the bit's significance (big-endian).
#nullFlagSet Source
nullFlagSet :: FlagSet ()
#flagSetValue Source
flagSetValue :: forall fs. FlagSet fs -> Int
- Modules
- Data.
Byte. Codec