buffer

buffer

Functions

Types and Values

typedef BufferData
  Buffer

Description

Functions

buffer_new ()

Buffer *
buffer_new (size_t size,
            BufferData const *data);

buffer_new_copy ()

Buffer *
buffer_new_copy (Buffer const *buffer);

buffer_delete ()

void
buffer_delete (Buffer *buffer);

buffer_get_data ()

BufferData const *
buffer_get_data (Buffer const *buffer);

buffer_set ()

int
buffer_set (Buffer *buffer,
            size_t size,
            BufferData const *data);

buffer_set_data ()

int
buffer_set_data (Buffer *buffer,
                 size_t offset,
                 BufferData const *data,
                 size_t size);

buffer_get_size ()

size_t
buffer_get_size (Buffer const *buffer);

buffer_set_size ()

int
buffer_set_size (Buffer *buffer,
                 size_t size);

Types and Values

BufferData

typedef char BufferData;

Buffer

typedef struct _Buffer Buffer;