UNPKG

xcom2charpool

Version:

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

12 lines (11 loc) 489 B
import { Reader } from './Reader'; import { CodecContext } from './CodecContext'; /** * Base class for codecs providing path-aware helpers and error wrapping. */ export declare abstract class BaseCodec { protected childContext(name: string, ctx: CodecContext): CodecContext; protected propName(ctx: CodecContext): string; protected fullPath(ctx: CodecContext): string; protected readSized<T>(reader: Reader, length: number, ctx: CodecContext, fn: (r: Reader) => T): T; }