Get a typed Uint8Array from a BytesLike object.

  • Parameters

    • value: BytesLike

      the BytesLike data.

    • Optionalname: string

      a display name for the error result.

    • copy: boolean = true

      create a copy of the original data (if applicable).

    Returns Uint8Array

    • a typed Uint8Array.