Web3S_Demo > Web 3S Byte Utils Function Library > AreBytesEqual

AreBytesEqual

Compares two arrays of bytes to determine if they are equal over a specified range.

Inputs

In
Exec

Array A
Array of Bytes

The first array to compare.

Array B
Array of Bytes

The second array to compare.

Start Index A
Integer

The starting index in ArrayA for comparison. Defaults to 0.

Length A
Integer

The number of elements to compare in ArrayA. Defaults to the maximum possible range.

Start Index B
Integer

The starting index in ArrayB for comparison. Defaults to 0.

Length B
Integer

The number of elements to compare in ArrayB. Defaults to the maximum possible range.

Outputs

Out
Exec

Return Value
Boolean

True if the specified ranges in both arrays are equal; otherwise, false.