@chickenjdk/byteutils
    Preparing search index...

    Class ChunkTransformerEmitter

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    resizingIsImmediate: boolean = true

    Accessors

    • get _buffered(): Uint8Array<ArrayBufferLike>

      Get the currently buffered data. Useful for custom logic

      Returns Uint8Array<ArrayBufferLike>

    • get chunkSize(): number

      The size of the buffer. NOT the size that we are allocating for new chunks.

      Returns number

    • get newChunkSize(): number

      The size that the newly allocated buffers should be. Set with .resize

      Returns number

    Methods

    • Flush the currently buffered data to the output. Replaced by .flushUsed

      Returns void

    • Write a Uint8Array or array

      Parameters

      • data: number[] | Uint8Array<ArrayBufferLike>

        The data to write

      Returns void