Safe Haskell | None |
---|---|
Language | Haskell98 |
Optimised decode function for OSC packets.
- getPacket :: Get Packet
- decodePacket :: ByteString -> Packet
- decodePacket_strict :: ByteString -> Packet
Documentation
decodePacket :: ByteString -> Packet Source
Decode an OSC packet from a lazy ByteString.
let b = B.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]
decodePacket_strict :: ByteString -> Packet Source
Decode an OSC packet from a strict ByteString.