import { BitField } from "https://deno.land/x/harmony@v2.6.0/src/utils/bitfield.ts";
Bit Field utility to work with Bits and Flags
Methods
add(...bits: BitFieldResolvable[]): BitField
any(bit: BitFieldResolvable): boolean
equals(bit: BitFieldResolvable): boolean
flags(): { [name: string]: bigint | number; }
freeze(): Readonly<BitField>
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