UNPKG

unreal.js

Version:

A pak reader for games like VALORANT & Fortnite written in Node.JS

94 lines (93 loc) 2.06 kB
/// <reference types="node" /> /// <reference types="ref-napi" /> import { FArchive } from "./FArchive"; /** * Proxy for UE4 Generic Reader */ export declare class FArchiveProxy extends FArchive { wrappedAr: FArchive; /** * Whether to use little endian order * @type {boolean} * @public */ get littleEndian(): boolean; set littleEndian(value: boolean); /** * Creates an instance * @param {FArchive} wrappedAr Ar to proxy * @constructor * @public */ constructor(wrappedAr: FArchive); /** * Clones this * @returns {FArchiveProxy} Clone * @public */ clone(): FArchiveProxy; /** * Size of data * @type {number} * @public */ get size(): number; /** * Current position * @type {number} * @public */ get pos(): number; set pos(pos: number); /** * Reads to a buffer * @param {Buffer} b Destination * @param {number} off Offset * @param {number} len Length * @returns {void} * @public */ readToBuffer(b: Buffer, off?: number, len?: number): void; /** * Returns FArchive info for error * @returns {string} * @public */ printError(): string; /** * Reads an 8-bit integer * @returns {number} Result * @public */ readInt8(): number; /** * Reads a 16-bit integer * @returns {number} Result * @public */ readInt16(): number; /** * Reads a 32-bit integer * @returns {number} Result * @public */ readInt32(): number; /** * Reads a 64-bit integer * @returns {bigint} Result * @public */ readInt64(): bigint; /** * Reads a 32-bit float * @returns {number} Result * @public */ readFloat32(): number; /** * Reads a double * @returns {number} Result * @public */ readDouble(): number; }