@etothepii/satisfactory-file-parser
Version:
A file parser for satisfactory files. Includes save files and blueprint files.
23 lines (22 loc) • 752 B
TypeScript
import { BinaryOperable } from "./binary-operable.interface";
export interface BinaryReadable extends BinaryOperable {
debug: boolean;
skipBytes: (count?: number) => void;
readBytes: (count: number) => Uint8Array;
readByte: () => number;
readHex: (count: number) => string;
readInt8: () => number;
readUint8: () => number;
readInt16: () => number;
readUint16: () => number;
readInt32: () => number;
readUint32: () => number;
readInt64: () => bigint;
readUint64: () => bigint;
readFloat32: () => number;
readDouble: () => number;
readString: () => string;
getBufferProgress: () => number;
allocate: (count: number) => PromiseLike<void>;
getAmountAllocatedLeft: () => number;
}