Interface Writer

Implemented by entities to which data can be written.

interface Writer {
    write(buf: Uint8Array): Promise<number>;
}

Hierarchy (view full)

Methods

Methods

  • Writes the given data buffer. Resolves to the number of written bytes.

    Parameters

    • buf: Uint8Array

      Buffer of data to write.

    Returns Promise<number>