Primary function
Decodes arguments from the binary.
Currently this automatically decodes the following argument types:
Type tag | Unicode number | Type | OSC spec version |
---|---|---|---|
i | 105 | 32 bit integer | 1.0+ required |
f | 102 | 32 bit float | 1.0+ required |
s | 115 | String | 1.0+ required |
b | 98 | Blob | 1.0+ required |
h | 104 | 64-bit big-endian two’s complement integer | 1.0 non-standard |
d | 100 | 64 bit (“double”) IEEE 754 floating point number | 1.0 non-standard |
m | 109 | 4 byte MIDI message | 1.0 non-standard |
c | 99 | An ascii character, sent as 32 bits | 1.0 non-standard |
t | 116 | OSC time tag | 1.1+ required |
r | 144 | 32 bit RGBA color | 1.0 non-standard |
S | 83 | Symbol | 1.0 non-standard |
[ and ] | 91 and 93 | List | 1.0 non-standard |
This function takes the following parameters:
- List (charlist) of tag types (e.g. ?s for string, ?i for integer, etc)
- Binary data, with the address and tag type string removed so that only argument data remains
Returns a tuple with the first element containing the decoded data, and the second element any remaining data. The second element will be an empty binary if all data was successfully decoded to the end.