API reference › @evolu/common › local‑first/Protocol › decodeFlags
function decodeFlags(
buffer: Buffer,
count: number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive">,
): readonly boolean[];
Defined in: packages/common/src/local-first/Protocol.ts:1834
Decodes a byte into an array of boolean flags.
Example
const flags = decodeFlags(buffer, 3); // Decode 3 flags