hosc-0.8: Haskell Open Sound Control
Sound.OpenSoundControl.Cast
Description
Bit-level type casts and byte layout string typecasts.
Synopsis
f32_i32 :: Float -> Int32Source
The IEEE byte representation of a float packed into an integer.
i32_f32 :: Int32 -> FloatSource
Inverse of f32_i32.
f32_i32
f64_i64 :: Double -> Int64Source
The IEEE byte representation of a double packed into an integer.
i64_f64 :: Int64 -> DoubleSource
Inverse of f64_i64.
f64_i64
str_cstr :: String -> [Word8]Source
Transform a haskell string into a C string (a null suffixed byte string).
cstr_str :: [Word8] -> StringSource
Inverse of str_cstr.
str_cstr
str_pstr :: String -> [Word8]Source
Transform a haskell string to a pascal string (a length prefixed byte string).
pstr_str :: [Word8] -> StringSource
Inverse of str_pstr.
str_pstr