@chickenjdk/byteutils
    Preparing search index...

    Class ChunkTransformerWithDataCallback<IsAsync>

    Type Parameters

    • IsAsync extends boolean = true | false

    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 length(): number

      Returns number

    • get newChunkSize(): number

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

      Returns number

    Methods

    • Change the chunk size of the buffer

      Parameters

      • chunkSize: number

        The chunk size

      Returns
          | (
              CouldBePossiblyPromise<void, IsAsync> extends PromiseLike<unknown>
                  ? Promise<void>
                  : void
          )
          | undefined