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

Merged
erikronstrom merged 3 commits from master into master 2015-08-26 09:18:09 +00:00
erikronstrom commented 2015-08-25 19:36:44 +00:00 (Migrated from github.com)

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.

According to the [OSC 1.0 specification](http://opensoundcontrol.org/spec-1_0), 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 2015-08-26 09:18:17 +00:00 (Migrated from github.com)

thanks

thanks
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: zzkt/osc#1
No description provided.