Interface XmlOutputBufferHandler

Callbacks to process the content in the output buffer.

interface XmlOutputBufferHandler {
    close(): boolean;
    write(buf: Uint8Array): number;
}

Methods

Methods

  • The callback function that will be triggered once all the data has been consumed.

    Returns boolean

    Whether the operation is succeeded.

  • The function that gets called when the content is consumed.

    Parameters

    • buf: Uint8Array

      The buffer that holds the output data.

    Returns number

    The bytes had been consumed or -1 on errors