libcucul buffer handling


Functions

unsigned long int cucul_get_buffer_size (cucul_buffer_t *)
 Get the buffer size.
void * cucul_get_buffer_data (cucul_buffer_t *)
 Get the buffer data.
void cucul_free_buffer (cucul_buffer_t *)
 Free a buffer.

Detailed Description

These functions provide methods to handle libcucul buffers.

Function Documentation

unsigned long int cucul_get_buffer_size cucul_buffer_t buf  ) 
 

This function returns the length (in bytes) of the memory area stored in the given libcucul buffer.

Parameters:
buf A libcucul buffer
Returns:
The buffer data length.

void* cucul_get_buffer_data cucul_buffer_t buf  ) 
 

This function returns a pointer to the memory area stored in the given libcucul buffer.

Parameters:
buf A libcucul buffer
Returns:
A pointer to the buffer memory area.

void cucul_free_buffer cucul_buffer_t buf  ) 
 

This function frees the structures associated with the given libcucul buffer.

Parameters:
buf A libcucul buffer