Crate osc_codec10

Crate osc_codec10 

Source
Expand description

osc-codec10: a small, no_std-friendly OSC 1.0 encoder/decoder

  • Zero-copy leaning: decoded Strings/Blobs borrow from the input buffer.
  • Strict 4-byte OSC alignment for strings/blobs.
  • Big endian numeric encoding per the OSC 1.0 spec.
  • Minimal scope: Messages and Bundles (bundle contains only messages in this first cut).

§no_std

Default builds use std. For no_std + alloc:

cargo build -p osc-codec10 --no-default-features --features alloc

§Examples

See examples/ for UDP send/recv samples (require std).

Enums§

Error
Errors that can occur while decoding.

Functions§

decode_bundle
Decode a bundle that can contain messages and nested bundles. Returns the bundle and number of bytes consumed.
decode_message
Decode a single OSC message from bytes, returning the message and number of bytes consumed.
encode_bundle
Encode a bundle that can contain messages and nested bundles.
encode_message
Encode a single OSC message into bytes.

Type Aliases§

Result