fuc-new/doc/node_modules/image-size/dist/utils/bit-reader.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

13 lines
393 B
TypeScript

/** This class helps read Uint8Array bit-by-bit */
declare class BitReader {
private readonly input;
private readonly endianness;
private byteOffset;
private bitOffset;
constructor(input: Uint8Array, endianness: 'big-endian' | 'little-endian');
/** Reads a specified number of bits, and move the offset */
getBits(length?: number): number;
}
export { BitReader };