-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathbit-set.d.ts
29 lines (26 loc) · 806 Bytes
/
bit-set.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Mnemonist BitSet Typings
* =========================
*/
export default class BitSet implements Iterable<number> {
// Members
length: number;
size: number;
// Constructor
constructor(length: number);
// Methods
clear(): void;
set(index: number, value?: boolean | number): void;
reset(index: number, value: boolean | number): void;
flip(index: number, value: boolean | number): void;
get(index: number): number;
test(index: number): boolean;
rank(r: number): number;
select(r: number): number;
forEach(callback: (index: number, value: number, set: this) => void, scope?: any): void;
values(): IterableIterator<number>;
entries(): IterableIterator<[number, number]>;
[Symbol.iterator](): IterableIterator<number>;
inspect(): any;
toJSON(): Array<number>;
}