@chickenjdk/byteutils
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isAsync: true
    reader: ReadableStreamDefaultReader
    source: ReadableStream

    Accessors

    Methods

    • Grab some data from the stream.

      Parameters

      • ideal: number

        The ideal amount of data. Implementers should ignore this if there data is chunked, and instead give the whole chunk. If they do not yet have a full chunk, give what you have.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Uint8Array containing the data, but if there will be more data, there just is not yet, AND the stream is sync, it will give undefined.