@drupflare/workforce - v0.3.0
    Preparing search index...

    Function asBinary

    • Copies bytes into a plain ArrayBuffer.

      One place for one awkwardness: @cloudflare/workers-types and @types/node disagree about the generic parameter on Uint8Array, so a Uint8Array<ArrayBufferLike> is rejected as a body or a blob part under one of them whichever way it is written. An owned ArrayBuffer is accepted by both. The copy is paid once per module at upload time and never on a request path.

      Parameters

      • bytes: Uint8Array

      Returns ArrayBuffer