UNPKG

libxslt-wasm

Version:

JavaScript bindings for libxslt compiled to WebAssembly

18 lines (17 loc) 579 B
import { xmlCharEncoding } from "../internal/libxml2.ts"; import { DataSegment } from "../utils/DataSegment.ts"; declare class XmlOutputBuffer extends DataSegment { /** * Allocate a new XML output buffer (`xmlOutputBufferPtr`) and return the * wrapper class */ static allocate(encoding?: keyof typeof xmlCharEncoding): XmlOutputBuffer; /** * Returns length of the data currently held in the output buffer */ get size(): number; writeString(str: string): void; toString(): string; delete(): void; } export { XmlOutputBuffer };