Safe Haskell | None |
---|
Byte-level coding utility functions.
- encode_i8 :: Int -> ByteString
- encode_i16 :: Int -> ByteString
- encode_i32 :: Int -> ByteString
- encode_u32 :: Int -> ByteString
- encode_i64 :: Int64 -> ByteString
- encode_u64 :: Word64 -> ByteString
- encode_f32 :: Float -> ByteString
- encode_f64 :: Double -> ByteString
- encode_str :: ASCII -> ByteString
- decode_i8 :: ByteString -> Int
- decode_i16 :: ByteString -> Int
- decode_i32 :: ByteString -> Int
- decode_u32 :: ByteString -> Int
- decode_i64 :: ByteString -> Int64
- decode_u64 :: ByteString -> Word64
- decode_f32 :: ByteString -> Float
- decode_f64 :: ByteString -> Double
- decode_str :: ByteString -> ASCII
- bundleHeader_strict :: ByteString
- bundleHeader :: ByteString
- align :: (Num i, Bits i) => i -> i
Documentation
encode_i8 :: Int -> ByteStringSource
Encode a signed 8-bit integer.
encode_i16 :: Int -> ByteStringSource
Encode a signed 16-bit integer.
encode_i32 :: Int -> ByteStringSource
Encode a signed 32-bit integer.
encode_u32 :: Int -> ByteStringSource
Encode an unsigned 16-bit integer.
encode_i64 :: Int64 -> ByteStringSource
Encode a signed 64-bit integer.
encode_u64 :: Word64 -> ByteStringSource
Encode an unsigned 64-bit integer.
encode_f32 :: Float -> ByteStringSource
Encode a 32-bit IEEE floating point number.
encode_f64 :: Double -> ByteStringSource
Encode a 64-bit IEEE floating point number.
encode_str :: ASCII -> ByteStringSource
Encode an ASCII string.
decode_i8 :: ByteString -> IntSource
Decode a signed 8-bit integer.
decode_i16 :: ByteString -> IntSource
Decode a signed 16-bit integer.
decode_i32 :: ByteString -> IntSource
Decode a signed 32-bit integer.
decode_u32 :: ByteString -> IntSource
Decode an unsigned 32-bit integer.
decode_i64 :: ByteString -> Int64Source
Decode a signed 64-bit integer.
decode_u64 :: ByteString -> Word64Source
Decode an unsigned 64-bit integer.
decode_f32 :: ByteString -> FloatSource
Decode a 32-bit IEEE floating point number.
decode_f64 :: ByteString -> DoubleSource
Decode a 64-bit IEEE floating point number.
decode_str :: ByteString -> ASCIISource
Decode an ASCII string.
bundleHeader_strict :: ByteStringSource
Bundle header as a (strict) ByteString
.
bundleHeader :: ByteStringSource
Bundle header as a lazy ByteString.