prepend

Prepends a prefix ByteArray to this ByteArray.

Creates a new ByteArray by concatenating the prefix followed by this array's contents.

Return

A new ByteArray containing the prefix followed by this array's contents.

Parameters

prefix

The ByteArray to prepend.