Ring1_ByteBuffer_appendBytes
Append Bytes to a Byte buffer.
int
Mkx_ByteBuffer_appendBytes
(
Mkx_ByteBuffer *byteBuffer,
const char *bytes,
size_t numberOfBytes
)
This function appends Bytes to a Byte Buffer.
It expects a pointer bytes
of numberOfBytes
Bytes
and appends these Bytes to the Byte buffer. It returns 0
on success and a
non-zero value on failure.
Parameter variables
byteBuffer
A pointer to the Byte buffer.
bytes
A pointer to an array of a numberOfBytes
Bytes.
numberOfBytes
The number of Bytes in the array pointed to by bytes
.
Return Values
byteBuffer
bytes
numberOfBytes
Bytes.numberOfBytes
bytes
.
Ring1_Result_Success
on success,
Ring1_Result_Failure
on failure.
Post Conditions
If this function fails, then it sets the by-thread status variable.
Below is a list of failure conditions and the status codes indicating them.
Ring1_Status_InvalidArgument
byteBuffer
and/orbytes
is a null pointerRing1_Status_AllocationFailed
- an allocation failed
If this function succeeds, the Bytes were appended to this Byte buffer.