UNPKG

ebml-stream

Version:
18 lines (17 loc) 771 B
/// <reference types="node" /> export declare class Tools { static readVint(buffer: Buffer | Uint8Array, start?: number): { length: number; value: number; }; static writeVint(value: number, desiredLength?: number): Buffer; static padStart(val: string): string; static readHexString(buff: Buffer | Uint8Array, start?: number, end?: number): string; static readUtf8(buff: Buffer | Uint8Array): string; static readUnsigned(buff: Buffer | Uint8Array): number | string; static writeUnsigned(num: number | string): Buffer; static readSigned(buff: Buffer | Uint8Array): number; static writeSigned(num: number): Buffer; static readFloat(buff: Buffer | Uint8Array): number; static writeFloat(num: number): Buffer; }