interface ProtobufStreamOpts {
    maxDataLength: number;
    maxLengthLength: number;
    yieldBytes?: boolean;
    lengthDecoder(data): number;
    lengthEncoder(value): Uint8Array | Uint8ArrayList;
}

Hierarchy (view full)

Properties

maxDataLength: number
maxLengthLength: number
yieldBytes?: boolean

After the stream is unwrapped, any bytes that have been read from the incoming stream will be yielded in-order as Uint8Array(s).

To yield a single Uint8ArrayList with all unread bytes instead, pass false here.

Methods