libxml2-wasm
    Preparing search index...

    Interface XmlOutputBufferHandler

    Callbacks to process the content in the output buffer.

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

    Implemented by

    Index

    Properties

    Properties

    close: () => boolean

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

    Type Declaration

      • (): boolean
      • Returns boolean

        Whether the operation is succeeded.

    write: (buf: Uint8Array) => number

    The function that gets called when the content is consumed.

    Type Declaration

      • (buf: Uint8Array): number
      • Parameters

        • buf: Uint8Array

          The buffer that holds the output data.

        Returns number

        The bytes had been consumed or -1 on errors