TutBufGetSize retrieve the number of bytes written to the buffer
buf
buffer to retrieve the size from
size_return
pointer to store the size
TRUE
if succesful, FALSE
otherwise.
None
TutBufGetSize retrieves the number of bytes written into the buffer. This can also be used as a write pointer, because all writes append to the end of the data in the buffer.
None
This example gets the size of a buffer:
T_INT4 size;
T_BOOL status;
status = TutBufGetSize(buf, &size);
if (status == FALSE) {
/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |