BALTECH SDK wrapper functions reference
mempool.h
Go to the documentation of this file.
1 
13 #ifndef __MEMPOOL_H__
14 #define __MEMPOOL_H__
15 
16 
17 #include "common.h"
18 
19 
29 typedef struct brp_mempool_object_t* brp_mempool;
30 
31 
44 BRP_LIB brp_buf brp_mempool_create_buf(brp_mempool *mempool, size_t initial_size);
45 
46 
56 BRP_LIB brp_buf brp_mempool_resize_buf(brp_buf buf, size_t new_size);
57 
68 BRP_LIB void brp_mempool_free(brp_mempool *mempool);
69 
70 
71 #endif
72  // 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:29
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