23 lines
565 B
TypeScript
23 lines
565 B
TypeScript
import type { IReader, IReaderResettable } from './types';
|
|
export declare class Reader implements IReader, IReaderResettable {
|
|
uint8: Uint8Array;
|
|
view: DataView;
|
|
x: number;
|
|
reset(uint8: Uint8Array): void;
|
|
peak(): number;
|
|
skip(length: number): void;
|
|
buf(size: number): Uint8Array;
|
|
u8(): number;
|
|
i8(): number;
|
|
u16(): number;
|
|
i16(): number;
|
|
u32(): number;
|
|
i32(): number;
|
|
u64(): bigint;
|
|
i64(): bigint;
|
|
f32(): number;
|
|
f64(): number;
|
|
utf8(size: number): string;
|
|
ascii(length: number): string;
|
|
}
|