Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Base-level decode function for Osc packets.
For ordinary use see Binary
.
Synopsis
- decodeMessage :: ByteString -> Message
- decodeBundle :: ByteString -> BundleOf Message
- decodePacket :: ByteString -> PacketOf Message
Documentation
decodeMessage :: ByteString -> Message Source #
Decode an Osc Message
.
decodeBundle :: ByteString -> BundleOf Message Source #
Decode an Osc BundleOf
.
decodePacket :: ByteString -> PacketOf Message Source #
Decode an Osc Packet
.
>>>
let b = B.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])
True