HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehosc-0.21.1Haskell2010

Sound.Osc.Coding.Cast

Bit-level type casts and byte layout string typecasts.

  • 8 values
  • Packagehosc-0.21.1
  • Exports8
  • LanguageHaskell2010
  • LicenceGPL-3.0-only
  • SourceCast.hs
valuef32_w32 :: Float -> Word32
#

The IEEE byte representation of a float.

Example1 expression
f32_w32 pi1078530011
Example1 expression
f32_w32 (-7913907.5)3404825447
Example1 expression
23 ^ 73404825447
valuew32_f32 :: Word32 -> Float
#

Inverse of f32_w32.

Example1 expression
w32_f32 10785300113.1415927
Example1 expression
w32_f32 (23 ^ 7)-7913907.5
valuef64_w64 :: Double -> Word64
#

The IEEE byte representation of a double.

Example1 expression
f64_w64 pi4614256656552045848
Example1 expression
f64_w64 1.6822072834e-3143404825447
valuew64_f64 :: Word64 -> Double
#

Inverse of f64_w64.

Example1 expression
w64_f64 46142566565520458483.141592653589793
Example1 expression
w64_f64 (23 ^ 7)1.6822072834e-314
valuestr_cstr :: String -> [Word8]
#

Transform a haskell string into a C string (a null suffixed byte string).

valuestr_pstr :: String -> [Word8]
#

Transform a haskell string to a pascal string (a length prefixed byte string).