#include "xdas_buf.h"
#include "xdas_debug.h"
#include <malloc.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | MAX_BUFFER_SIZE (8 * 64 * 1024) |
Functions | |
xdas_buffer | xdas_buffer_alloc (size_t size) |
Allocates a message buffer. | |
xdas_buffer | xdas_buffer_realloc (xdas_buffer buf, size_t size) |
Resizes a message buffer. | |
xdas_buffer | xdas_buffer_dup (xdas_buffer buf) |
Returns a duplicate buffer. | |
void | xdas_buffer_free (xdas_buffer buf) |
Free a message buffer. |
This file provides a higher level abstraction over malloc and free that deals specifically with xdas network message buffer management, plus some macros that pass xdas_buffers
through to the wire buffer insertion and extraction routines.
Definition in file xdas_buf.c.
#define MAX_BUFFER_SIZE (8 * 64 * 1024) |
Definition at line 51 of file xdas_buf.c.
Referenced by xdas_buffer_alloc(), and xdas_buffer_realloc().