Get an Osc Packet.
Modulehosc-0.20Haskell2010
Sound.Osc.Coding.Decode.Binary
Optimised decode function for Osc packets.
- 5 values
- Packagehosc-0.20
- Exports5
- LanguageHaskell2010
- LicenceGPL-3.0-only
- SourceBinary.hs
Decode an Osc Message from a lazy ByteString.
let b = ByteString.Lazy.pack [47,103,95,102,114,101,101,0,44,105,0,0,0,0,0,0]
decodeMessage b == Message "/g_free" [Int32 0]Decode an Osc Bundle from a lazy ByteString.
Decode an Osc packet from a lazy ByteString.
let b = ByteString.Lazy.pack [47,103,95,102,114,101,101,0,44,105,0,0,0,0,0,0]
decodePacket b == Packet_Message (Message "/g_free" [Int32 0])Decode an Osc packet from a strict Char8 ByteString.