Function binToFixedLength

  • Fill a new Uint8Array of a specific byte-length with the contents of a given Uint8Array, truncating or padding the Uint8Array with zeros.

    Parameters

    • bin: Uint8Array

      the Uint8Array to resize

    • bytes: number

      the desired byte-length

    Returns Uint8Array

Generated using TypeDoc