Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs | Functions | Variables
afw_memory.c File Reference

Adaptive Framework memory support. More...

#include "afw_internal.h"

Go to the source code of this file.

Data Structures

struct  impl_memory_buffer_segment_s
 
struct  impl_memory_self_t
 

Macros

#define IMPL_BINARY_BUF_SEGMENT_SIZE   1000
 

Typedefs

typedef struct impl_memory_buffer_segment_s impl_memory_buffer_segment_t
 

Functions

 afw_object_create_clone (const afw_object_t *object, const afw_pool_t *p, afw_xctx_t *xctx)
 Clone an object to a specified pool. More...
 
 AFW_DEFINE (const afw_object_t *)
 
 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...
 
 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...
 
 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...
 
 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...
 
 afw_memory_create_writer (const afw_pool_t *p, afw_xctx_t *xctx)
 Create a memory writer. More...
 
 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_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...
 
 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...
 

Variables

const afw_octet_t impl_hex_lookup [256]
 

Detailed Description

Adaptive Framework memory support.

Definition in file afw_memory.c.

Variable Documentation

◆ impl_hex_lookup

const afw_octet_t impl_hex_lookup[256]
Initial value:
= {
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 255, 255, 255, 255, 255,
255, 10, 11, 12, 13, 14, 15, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 10, 11, 12, 13, 14, 15, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255
}

Definition at line 61 of file afw_memory.c.