Spaces:
Running
Running
File size: 1,592 Bytes
78c921d |
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 30 31 32 33 34 35 36 37 |
/** @ignore */
export declare function getBool(_data: any, _index: number, byte: number, bit: number): boolean;
/** @ignore */
export declare function getBit(_data: any, _index: number, byte: number, bit: number): 0 | 1;
/** @ignore */
export declare function setBool(bytes: Uint8Array, index: number, value: any): boolean;
/** @ignore */
export declare function truncateBitmap(offset: number, length: number, bitmap: Uint8Array): Uint8Array;
/** @ignore */
export declare function packBools(values: Iterable<any>): Uint8Array;
/** @ignore */
export declare class BitIterator<T> implements IterableIterator<T> {
private bytes;
private length;
private context;
private get;
bit: number;
byte: number;
byteIndex: number;
index: number;
constructor(bytes: Uint8Array, begin: number, length: number, context: any, get: (context: any, index: number, byte: number, bit: number) => T);
next(): IteratorResult<T>;
[Symbol.iterator](): this;
}
/**
* Compute the population count (the number of bits set to 1) for a range of bits in a Uint8Array.
* @param vector The Uint8Array of bits for which to compute the population count.
* @param lhs The range's left-hand side (or start) bit
* @param rhs The range's right-hand side (or end) bit
*/
/** @ignore */
export declare function popcnt_bit_range(data: Uint8Array, lhs: number, rhs: number): number;
/** @ignore */
export declare function popcnt_array(arr: ArrayBufferView, byteOffset?: number, byteLength?: number): number;
/** @ignore */
export declare function popcnt_uint32(uint32: number): number;
|