Web3S_Demo > Web 3S Byte Utils Function Library > SplitBytes

SplitBytes

Splits a byte array into two parts based on a specified length.

Inputs

In
Exec

Byte Array
Array of Bytes

The input array to split.

Length A
Integer

The number of elements to include in the first output array (OutArrayA).

Outputs

Out
Exec

Array A
Array of Bytes

The first part of the split array. Contains the first InLengthA elements of InByteArray.

Array B
Array of Bytes

The second part of the split array. Contains the remaining elements of InByteArray.