Append the string or binary data at the end of the memory buffer and return the new size of memory allocated.
$data
data
The string or binary data to append at the end of the memory buffer.
The new size of the memory buffer.