Adaptive Framework
0.9.0
|
Header file for Adaptive Framework Memory. More...
#include "afw_minimal.h"
Go to the source code of this file.
Data Structures | |
struct | afw_memory_writer_t |
Return value from afw_memory_create_writer(). More... | |
Macros | |
#define | afw_memory_copy(to, from) memcpy((to), (from), sizeof(*(to))) |
Copy to preallocated memory of same type. More... | |
#define | afw_memory_clear(to) memset((to), 0, sizeof(*(to))) |
Clear preallocated memory for sizeof(*(to)). More... | |
Functions | |
const afw_memory_t * | afw_memory_create (const afw_byte_t *ptr, afw_size_t size, const afw_pool_t *p, afw_xctx_t *xctx) |
Create a afw_memory_t struct for a ptr and size. More... | |
void * | afw_memory_dup (const void *from, apr_size_t size, const afw_pool_t *p, afw_xctx_t *xctx) |
Duplicate a block of memory into specified pool. More... | |
void | afw_memory_encode_base64 (afw_utf8_t *encoded, const afw_memory_t *memory, const afw_pool_t *p, afw_xctx_t *xctx) |
Encode memory to as base64 string. More... | |
void | afw_memory_decode_base64 (afw_memory_t *memory, const afw_utf8_t *encoded, const afw_pool_t *p, afw_xctx_t *xctx) |
Decode memory to a base64 string. More... | |
void | afw_memory_encode_printable_hex (afw_utf8_t *encoded, const afw_memory_t *memory, const afw_pool_t *p, afw_xctx_t *xctx) |
Encode memory to a printable hex string. More... | |
void | afw_memory_decode_printable_hex (afw_memory_t *memory, const afw_utf8_t *encoded, const afw_pool_t *p, afw_xctx_t *xctx) |
Decode memory to a printable hex string. More... | |
const afw_memory_writer_t * | afw_memory_create_writer (const afw_pool_t *p, afw_xctx_t *xctx) |
Create a memory writer. More... | |
afw_size_t | afw_memory_writer_get_current_size (const afw_memory_writer_t *writer, afw_xctx_t *xctx) |
Retrieve memory as one chunk from memory writer and release writer. More... | |
afw_size_t | afw_memory_writer_retrieve_using_callback_and_release (const afw_memory_writer_t *writer, void *context, afw_write_cb_t callback, afw_xctx_t *xctx) |
Retrieve memory as using callback. More... | |
const afw_memory_t * | afw_memory_writer_retrieve_and_release (const afw_memory_writer_t *writer, afw_xctx_t *xctx) |
Retrieve memory as one chunk from memory writer and release writer. More... | |
Header file for Adaptive Framework Memory.
Definition in file afw_memory.h.