Interface StdioOutputStream

Implemented by entities to which data can be written.

interface StdioOutputStream {
    height: number;
    isTerminal: boolean;
    type: StdioType;
    width: number;
    write(buf: Uint8Array): Promise<number>;
}

Hierarchy (view full)

Properties

Methods

Properties

height: number
isTerminal: boolean
type: StdioType
width: number

Methods

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

    Parameters

    • buf: Uint8Array

      Buffer of data to write.

    Returns Promise<number>