Safe Haskell | None |
---|---|
Language | Haskell98 |
Optimised encode function for OSC packets.
- build_packet :: Packet -> Builder
- encodeMessage :: Message -> ByteString
- encodeBundle :: Bundle -> ByteString
- encodePacket :: Packet -> ByteString
- encodePacket_strict :: Packet -> ByteString
Documentation
build_packet :: Packet -> Builder Source
Builder monoid for an OSC Packet
.
encodeMessage :: Message -> ByteString Source
Encode an OSC Message
.
encodeBundle :: Bundle -> ByteString Source
Encode an OSC Bundle
.
encodePacket :: Packet -> ByteString Source
Encode an OSC Packet
to a lazy ByteString
.
let b = L.pack [47,103,95,102,114,101,101,0,44,105,0,0,0,0,0,0] in encodeOSC (Message "/g_free" [Int 0]) == b
encodePacket_strict :: Packet -> ByteString Source
Encode an Packet packet to a strict ByteString.