mcchunktools
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Functions
buffer.h File Reference
#include <stddef.h>
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  buffer
 

Macros

#define BUFFER_INIT   (struct buffer) { NULL, 0, 0 }
 

Functions

void buffer_free (struct buffer *b)
 
int buffer_reserve (struct buffer *b, size_t reserved_amount)
 
int buffer_append (struct buffer *b, const void *data, size_t n)
 

Macro Definition Documentation

#define BUFFER_INIT   (struct buffer) { NULL, 0, 0 }

Definition at line 35 of file buffer.h.

Function Documentation

int buffer_append ( struct buffer b,
const void *  data,
size_t  n 
)
void buffer_free ( struct buffer b)
int buffer_reserve ( struct buffer b,
size_t  reserved_amount 
)