Class Uint8ArrayWriter

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

Hierarchy (view full)

  • Writer<Uint8Array>
    • Uint8ArrayWriter

Constructors

Properties

Methods

Constructors

Properties

writable: WritableStream<any>

The WritableStream instance.

Methods

  • Retrieves all the written data

    Returns Promise<Uint8Array>

    A promise resolving to the written data.

  • Initializes the instance asynchronously

    Parameters

    • Optional size: number

      the total size of the written data in bytes.

    Returns Promise<void>

  • Appends a chunk of data

    Parameters

    • array: Uint8Array

      The chunk data to append.

    Returns Promise<void>

Generated using TypeDoc