zzkt / osc

a common lisp implementation of the Open Sound Control protocol aka OSC
GNU General Public License v3.0
37 stars 8 forks source link

Encoding and decoding blobs now follows the spec with regards to size #1

Closed erikronstrom closed 9 years ago

erikronstrom commented 9 years ago

According to the OSC 1.0 specification, blobs are to be encoded as

An int32 size count, followed by that many 8-bit bytes of arbitrary binary data, followed by 0-3 additional zero bytes to make the total number of bits a multiple of 32.

However, the algorithm used by this osc library always pads, i.e. it adds 1-4 additional zero bytes.

zzkt commented 9 years ago

thanks