UNPKG

xcom2charpool

Version:

Library for reading, manipulating, and managing XCOM 2 character pool binary files, supporting both browser and Node.js environments.

21 lines (20 loc) 709 B
import type { Reader } from '../Reader'; import type { Writer } from '../Writer'; /** * FString codec used by Reader/Writer implementations. * Length prefix is int32 including null terminator: * - Positive length: 8-bit bytes (low byte of UCS-2), null-terminated. * - Negative length: UTF-16LE code units, null-terminated. */ export declare class FSting { static readonly NullByte = 0; static read(reader: Reader): string; static write(writer: Writer, value: string): void; private static readAnsi; private static readUtf16; private static isAnsi; private static encodeAnsi; private static decodeAnsi; private static encodeUtf16LE; private static decodeUtf16LE; }