C API for BALTECH SDK
mempool.h
Go to the documentation of this file.
1 
11 #ifndef __MEMPOOL_H__
12 #define __MEMPOOL_H__
13 
14 
15 #include "common.h"
16 
17 
27 typedef struct brp_mempool_object_t* brp_mempool;
28 
29 
42 BRP_LIB brp_buf brp_mempool_create_buf(brp_mempool *mempool, size_t initial_size);
43 
44 
54 BRP_LIB brp_buf brp_mempool_resize_buf(brp_buf buf, size_t new_size);
55 
66 BRP_LIB void brp_mempool_free(brp_mempool *mempool);
67 
68 
69 #endif
70  // end of defgroup brp_lib
BRP_LIB void brp_mempool_free(brp_mempool *mempool)
Releases the memory of a brp_mempool.
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
Contains the basic defines that are required throughout the BRP library.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61