TutBufGetSize


Name

TutBufGetSize — retrieve the number of bytes written to the buffer

Synopsis

T_BOOL TutBufGetSize(buf, size_return) 
T_BUF buf; 
T_INT4 *size_return; 

Arguments

buf — buffer to retrieve the size from

size_return — pointer to store the size

Return Values

TRUE if succesful, FALSE otherwise.

Diagnostics

None

Description

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.

Caution

None

See Also

TutBufSetSize

Examples

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