wayland/read-bits@0.0.2

License: GNU General Public License v3.0

Nodes for reading each bit of a byte.
NodeDescription
read-0
Read the least significant bit (0) of a byte.
read-1
Read bit 1.
read-2
Read bit 2.
read-3
Read bit 3.
read-4
Read bit 4.
read-5
Read bit 5.
read-6
Read bit 6.
read-7
Read bit 7 (most significant bit of byte).
example-u16-to-bits
Demonstrates reading the boolean value of each of the bits in a 16-bit unsigned integer. Run in debugger.
example-byte-to-bits
Demonstrates reading the boolean value of each of the bits in a byte. Run in debugger.
boolean-bit-to-0-1-string
Convert a boolean to its string representation. True becomes "1" and false becomes "0".
example-u16-to-bit-string
Demonstrates converting a 16-bit unsigned integer into a string representation of its bits. Run in debugger.
To use the nodes in your project you should have the wayland/read-bits library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.