hosc-0.11: Haskell Open Sound Control

Sound.OpenSoundControl.Coding.Byte

Description

Byte-level coding utility functions.

Synopsis

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 :: Double -> ByteStringSource

Encode a 32-bit IEEE floating point number.

encode_f64 :: Double -> ByteStringSource

Encode a 64-bit IEEE floating point number.

encode_str :: String -> 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 -> DoubleSource

Decode a 32-bit IEEE floating point number.

decode_f64 :: ByteString -> DoubleSource

Decode a 64-bit IEEE floating point number.

decode_str :: ByteString -> StringSource

Decode an ASCII string.

bundleHeader :: ByteStringSource

Bundle header string.

align :: Bits i => i -> iSource

The number of bytes required to align an OSC value to the next 4-byte boundary.