API0.1.1
    Preparing search index...

    A byte stream both ways: an adb socket, a serial port, or a simulation in tests.

    interface ByteStream {
        close(): Promise<void>;
        onData(cb: (chunk: Uint8Array) => void): void;
        write(data: Uint8Array): Promise<void>;
    }
    Index
    • Returns Promise<void>

    • Registers the receiver for incoming bytes (called once).

      Parameters

      • cb: (chunk: Uint8Array) => void

      Returns void

    • Parameters

      • data: Uint8Array

      Returns Promise<void>