hosc-0.16: Haskell Open Sound Control

Safe HaskellNone
LanguageHaskell98

Sound.OSC.Coding.Encode.Builder

Description

Optimised encode function for OSC packets.

Synopsis

Documentation

build_packet :: Packet -> Builder Source #

Builder for an OSC Packet.

encodeMessage :: Message -> ByteString Source #

Encode an OSC Message.

let b = L.pack [47,103,95,102,114,101,101,0,44,105,0,0,0,0,0,0]
encodeMessage (Message "/g_free" [Int32 0]) == b