Ring1_ByteBuffer_appendByte
Append a Bytes to a Byte buffer.
int
Mkx_ByteBuffer_appendByte
(
Mkx_ByteBuffer *byteBuffer,
const char byte
)
This function appends a Byte byte
to a Byte Buffer.
It returns 0
on success and a non-zero value on failure.
Parameter variables
byteBuffer
- A pointer to the Byte buffer.
byte
- The Byte.
Return Values
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
is a null pointerRing1_Status_AllocationFailed
- an allocation failed
If this function succeeds, the Byte was appended to this Byte buffer.