/
Bytearray Functions(3.0)

Bytearray Functions(3.0)

The functions described in this section are used to perform operations on variables of the bytearray type.

baAppend

Concatenates two bytearrays and returns the result. None of the input arrays are changed.

bytearray baAppend
(bytearray array1,
bytearray array2 )
ParameterDescription

array1

A bytearray

array2

Another bytearray to append to the end of array1

Returns

The concatenated bytearray

baCreate

Creates a new bytearray of the specified size.

bytearray baCreate( int size )
ParameterDescription

size

Size of the new array in bytes

Returns

A bytearray of the specified size

baCreateFromHexString

Converts a readable hex string into a bytearray.

bytearray baCreateFromHexString