Endo
    Preparing search index...
    • Copies the contents of an immutable ArrayBuffer into a fresh mutable Uint8Array.

      Immutable ArrayBuffer instances (proposal-immutable-arraybuffer) cannot back a Uint8Array view directly, and APIs such as TextDecoder.decode reject them. This helper produces a working Uint8Array copy that callers can pass to those APIs.

      Accepts any ArrayBufferLike so callers do not need to narrow the argument before invoking.

      Parameters

      • buffer: ArrayBufferLike

      Returns Uint8Array<ArrayBufferLike>