beth-parser
Version:
Parser library for Bethesda's Creation Engine data files
25 lines (24 loc) • 674 B
TypeScript
/// <reference types="node" />
/**
* Strings file writer (high-level API for serializer).
*/
export default class StringsWriter {
private encoding;
constructor(encoding?: string);
/**
* Write strings data into buffer.
* @param strings Strings data.
* @param padded Whether to use size padding.
*/
writeBuffer(strings: {
[id: number]: string;
}, padded?: boolean): Buffer;
/**
* Write strings data into the specified file.
* @param strings Strings data.
* @param filename Target file.
*/
writeFile(strings: {
[id: number]: string;
}, filename: string): void;
}