static struct Buffer ** BufferPool
static struct Buffer * buffer_new(void)
Allocate a new Buffer on the heap.
static size_t BufferPoolLen
String manipulation buffer.
void mutt_buffer_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
struct Buffer * mutt_buffer_init(struct Buffer *buf)
Initialise a new Buffer.
@ LL_DEBUG1
Log at debug level 1.
size_t dsize
Length of data.
void mutt_buffer_reset(struct Buffer *buf)
Reset an existing Buffer.
void mutt_buffer_pool_release(struct Buffer **pbuf)
Free a Buffer from the pool.
void mutt_buffer_alloc(struct Buffer *buf, size_t new_size)
Make sure a buffer can store at least new_size bytes.
struct Buffer * mutt_buffer_pool_get(void)
Get a Buffer from the pool.
static void increase_buffer_pool(void)
Increase the size of the Buffer pool.
void mutt_mem_realloc(void *ptr, size_t size)
Resize a block of memory on the heap.
#define mutt_debug(LEVEL,...)
static unsigned char * pbuf
Cache PGP data packet.
void mutt_buffer_pool_free(void)
Release the Buffer pool.
static size_t BufferPoolCount
void * mutt_mem_malloc(size_t size)
Allocate memory on the heap.
static void buffer_free(struct Buffer **p)
Release a Buffer and its contents.
char * data
Pointer to data.
static size_t BufferPoolIncrement
static size_t BufferPoolInitialBufferSize