Functions | |
cucul_buffer_t * | cucul_load_memory (void *, unsigned long int) |
Load a memory area into a buffer. | |
cucul_buffer_t * | cucul_load_file (char const *) |
Load a file into a buffer. | |
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. | |
int | cucul_free_buffer (cucul_buffer_t *) |
Free a buffer. |
|
This function creates a libcucul buffer that points to the given memory area. The data is not duplicated and any changes made to the original memory area appear in the buffer.
|
|
This function loads a file into memory and returns a libcucul buffer for use with other functions.
|
|
This function returns the length (in bytes) of the memory area stored in the given libcucul buffer. This function never fails.
|
|
This function returns a pointer to the memory area stored in the given libcucul buffer. This function never fails.
|
|
This function frees the structures associated with the given libcucul buffer. This function never fails.
|