Sets the size of the ByteArray, expanding it if necessary.
the new size of the ByteArray
a ByteArray
the ByteArray