wowok
Version:
Wowok Blockchain TypeScript API
16 lines (15 loc) • 426 B
TypeScript
export declare class BcsReader {
private dataView;
private bytePosition;
constructor(data: Uint8Array);
shift(bytes: number): this;
read8(): number;
read16(): number;
read32(): number;
read64(): string;
read128(): string;
read256(): string;
readBytes(num: number): Uint8Array;
readULEB(): number;
readVec(cb: (reader: BcsReader, i: number, length: number) => any): any[];
}