Skip to content

Instantly share code, notes, and snippets.

@Casao
Casao / README.md
Created November 13, 2016 18:24 — forked from xavriley/README.md
Writing a C extension for Ruby to parse and unparse OSC messages

This is a note for myself more than anything. I've started on a wrapper for the rtosc library https://github.com/fundamental/rtosc

The aim is to make a gem called FastOsc that will have two methods

FastOsc.serialise(["/aa", "foo", "bar"]) #=> "/aa\x00ss\x00\x00foo\x00bar\x00"
FastOsc.deserialise("/aa\x00ss\x00\x00foo\x00bar\x00") #=> ["foo", "bar"]

This followed from the rtosc library author giving me a really helpful response. fundamental/rtosc#28