@zip.js/zip.js
    Preparing search index...

    Class Uint8ArrayWriter

    Represents a Writer instance used to retrieve the written data as a Uint8Array instance.

    When reading an entry, the buffer is allocated upfront from the declared EntryMetaData#uncompressedSize, capped at 1032 times EntryMetaData#compressedSize (the maximum expansion ratio of deflate). The declared size is not verified before the allocation, so check it against the limit your application accepts when the zip file comes from an untrusted source.

    Hierarchy (View Summary)

    • Writer<Uint8Array<ArrayBuffer>>
      • Uint8ArrayWriter
    Index
    size: number

    The number of bytes written into the instance.

    writable: WritableStream

    The WritableStream instance.

    • Retrieves all the written data

      Returns Uint8Array<ArrayBuffer> | Promise<Uint8Array<ArrayBuffer>>

      The written data, or a promise resolving to it.

    • Initializes the instance, synchronously or asynchronously

      Parameters

      • Optionalsize: number

        the total size of the written data in bytes.

      Returns void | Promise<void>

    • Appends a chunk of data, synchronously or asynchronously

      Parameters

      • array: Uint8Array

        The chunk data to append.

      Returns void | Promise<void>