Bitbanging in VL?

What’s the pattern for manipulating binary bits in VL?

I’m working on implementing a protocol (STUN) that has requirements like 12 bit values stuck next to 2 bit flags and similar.
In terms of patching this I’m looking for usability over performance. I.E not bitwise maths adding chars together etc.

Fpr example ToString (Binary Byte) with the leading zeroes is a great way to see what’s going on with the bits. Any way to do the opposite of this? Then I could assemble my binary payload as a string which is not great performance but very easy conceptually. Or how would you do it?

please consult here: https://vvvv.org/blog/integer-and-primitive-types-in-vl#tryparse-binary

also see if the implementations of OSC, TUIO and Firmata in vl can be of inspiration!

1 Like

Ah great thanks!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.