OSAPI  0.29
Open System API
osapi_common_memory_S Struct Reference

#include <common_types_memory.h>

Data Fields

t_size capacity
 The memory allocated capacity.
 
Byte canary
 A MAGIC constant to indicate if the data pointer is really pointing to a previously allocated memory.
 
Byte type
 The type of memory that was initially requested. A value of 0 means that memory can grow (malloc).
 
void * data
 Allocated HEAP memory location.
 

Detailed Description

Structure supporting a self describing memory/buffer The reasoning is that naked memory handling is more error prone and encapsulation of memory supported by a "buffer" type can provided more robust code.


The documentation for this struct was generated from the following file: