import { BitField } from "https://deno.land/x/harmony@v2.8.0/src/utils/bitfield.ts";
Bit Field utility to work with Bits and Flags
Constructors
new
BitField(flags: { [name: string]: number | bigint; }, bits: BitFieldResolvable)Methods
add(...bits: BitFieldResolvable[]): BitField
any(bit: BitFieldResolvable): boolean
equals(bit: BitFieldResolvable): boolean
flags(): { [name: string]: bigint | number; }
has(bit: BitFieldResolvable, ..._: unknown[]): boolean
missing(bits: BitFieldResolvable, ...hasParams: unknown[]): BitFieldResolvable[]
remove(...bits: BitFieldResolvable[]): BitField
serialize(...hasParams: unknown[]): { [key: string]: boolean; }
toArray(...hasParams: unknown[]): string[]
toJSON(): string
valueOf(): bigint
[Symbol.iterator](): Iterator<string>
Static Methods
resolve(flags: Record<string, bigint | number>, bit?: BitFieldResolvable): bigint