Module nannou_osc::encoder [−][src]
Expand description
Encodes an OscPacket
to a byte vector.
Functions
Takes a reference to an OSC packet and returns
a byte vector on success. If the packet was invalid
an OscError
is returned.
Null terminates the byte representation of string s
and
adds null bytes until the length of the result is a
multiple of 4.
Returns the position padded to 4 bytes.