#include <stdlib.h>
#include <string.h>
#include "buffer.h"
Go to the source code of this file.
Classes | |
struct | buffer |
Defines | |
#define | INITIAL_BUFFER_SIZE 256 |
Functions | |
static int | buffer_assure_space (buffer_t buffer, int size) |
int | buffer_free (buffer_t buffer) |
char * | buffer_get_buffer (buffer_t buffer) |
int | buffer_get_position (buffer_t buffer) |
static int | buffer_grow (buffer_t buffer, int min_length) |
buffer_t | buffer_new (void) |
buffer_position | buffer_save_space (buffer_t buffer, int size) |
int | buffer_write (buffer_t buffer, const char *data, int size) |
int | buffer_write_at_position (buffer_t buffer, buffer_position position, const char *data, int size) |
static int buffer_assure_space | ( | buffer_t | buffer, | |
int | size | |||
) | [static] |
static int buffer_grow | ( | buffer_t | buffer, | |
int | min_length | |||
) | [static] |
buffer_position buffer_save_space | ( | buffer_t | buffer, | |
int | size | |||
) |
int buffer_write | ( | buffer_t | buffer, | |
const char * | data, | |||
int | size | |||
) |
int buffer_write_at_position | ( | buffer_t | buffer, | |
buffer_position | position, | |||
const char * | data, | |||
int | size | |||
) |