HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehosc-0.20Haskell2010

Sound.Osc.Coding.Byte

Byte-level coding utility functions. Plain forms are big-endian, little-endian forms have _le suffix.

  • 63 values
  • Packagehosc-0.20
  • Exports63
  • LanguageHaskell2010
  • LicenceGPL-3.0-only
  • SourceByte.hs

Encode

10 declarations

Encode/Int

8 declarations

Encode/Float

4 declarations

Encode/Ascii

1 declaration

Decode

7 declarations

Decode/Int

10 declarations
valuedecode_i32 :: ByteString -> Int
#

Decode a signed 32-bit integer.

decode_i32 (L.pack [0x00,0x00,0x03,0xe7]) == 0x03e7

Decode/Float

3 declarations

Decode/Ascii

1 declaration

IO

5 declarations

Io/Int

8 declarations

Io/Float

2 declarations

Io/Ascii

1 declaration

Util

3 declarations
valuealign :: (Num i, Bits i) => i -> i
#

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

map align [0::Int .. 7] == [0,3,2,1,0,3,2,1]
map align [512::Int .. 519] == [0,3,2,1,0,3,2,1]