@chickenjdk/byteutils
    Preparing search index...

    Class Transform<IsAsync>Abstract

    Type Parameters

    • IsAsync extends boolean

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    isAsync: IsAsync

    The source of this class. IMPLEMENTERS: make it readonly

    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 MaybePromise<Uint8Array<ArrayBufferLike>, IsAsync>

      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.