/// import buffer from 'buffer'; /** * IOBuffer is a class that can be used to read and write data to and from a binary buffer */ declare class IOBuffer { readonly buffer: buffer.Buffer; readonly length: number; private _currentPosition; /** * This constructor should not be called directly * * @param arg the buffer to use */ constructor(arg: ArrayBuffer | buffer.Buffer); readUInt8(): number; readUInt16(): number; readUInt32(): number; readUInt64(): bigint; readInt64(): bigint; readFloat(): number; readDouble(): number; readSlice(numBytes: number): IOBuffer; readString(numBytes: number): string; writeUInt8(value: number): void; writeUInt16(value: number): void; writeUInt32(value: number): void; writeBytes(value: buffer.Buffer): void; remaining(): number; hasRemaining(): boolean; reset(): void; /** * Update the position of the pointer * @param numBytes the number of bytes to advance the pointer * @returns the previous position */ private _updateCurrentPosition; } export default IOBuffer;