Optimised decode function for OSC packets.
- getOSC :: Get OSC
- decodeOSC :: ByteString -> OSC
- decodeOSC' :: ByteString -> OSC
Documentation
decodeOSC :: ByteString -> OSCSource
Decode an OSC packet from a lazy ByteString.
let b = L.pack [47,103,95,102,114,101,101,0,44,105,0,0,0,0,0,0] in decodeOSC b == Message "/g_free" [Int 0]
decodeOSC' :: ByteString -> OSCSource
Decode an OSC packet from a strict ByteString.