flags top-level constant
_Flags
const flags
Converts a list of 8 booleans into a single byte.
If the list of booleans is less than 8 it will automatically set the rest
of the values to false
.
It has a byte length of 1.
Usage:
payload.set(flags, [true, false, true]);
Implementation
const flags = _Flags();