Function: normalizePadding()

normalizePadding(byteArray, targetLength): Uint8Array

Defined in: index.ts:84

Function to normalize padding of byte array with 0’s to a target length.

Parameters

byteArray

Uint8Array

The byte array to pad or trim.

targetLength

number

The target length after padding or trimming.

Returns

Uint8Array

  • The normalized byte array.

Function: normalizePadding()

normalizePadding(byteArray, targetLength): Uint8Array

Defined in: index.ts:84

Function to normalize padding of byte array with 0’s to a target length.

Parameters

byteArray

Uint8Array

The byte array to pad or trim.

targetLength

number

The target length after padding or trimming.

Returns

Uint8Array

  • The normalized byte array.