Use this function to get the size of the data buffer associated with (and owned by) the message object specified in the message argument.
CciSize cniBufferSize(
int* returnCode,
CciMessage* message);
The size of the buffer in bytes, or zero if no buffer exists. If an error occurred, (CCI_FAILURE) is returned, and the returnCode parameter indicates the reason for the error.