R
fn

computeRemainder

tested

Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials.

Signature

ts
export function computeRemainder(data: ArrayLike<number>, divisor: Uint8Array): Uint8Array{ ... }

Parameters

ParameterTypeDescription
dataArrayLike<number>
divisorUint8Array<ArrayBufferLike>

Returns

Uint8Array<ArrayBufferLike>