IronCalc Wasm
    Preparing search index...

    Class ByteBuffer

    The bytes of a file, kept in wasm memory and filled from JavaScript chunk by chunk. This lets a large file be loaded without ever holding it in full on the JavaScript side and then copying it into wasm memory in one go.

    Pass it to Model.fromBuffer or Model.fromXlsxBuffer, which consume it.

    Index
    • Creates an empty buffer with room for capacity bytes. Throws if that much memory is not available, instead of trapping later.

      Parameters

      • capacity: number

      Returns ByteBuffer

    length: number

    Number of bytes appended so far

    • Returns void

    • Appends a chunk of the file

      Parameters

      • chunk: Uint8Array

      Returns void

    • Returns void