A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated array, and an optional realloc function which can changes its size. More...
#include <dynamic-uint8-array-types.h>
Public Attributes | |
uint8_t * | array |
the allocated array buffer | |
size_t | length |
the length of the allocated array buffer | |
ndn_ReallocFunction | realloc |
a pointer to a function that reallocates array and returns a new pointer to a buffer of length bytes, or 0 for error. More... | |
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated array, and an optional realloc function which can changes its size.
ndn_ReallocFunction ndn_DynamicUInt8Array::realloc |
a pointer to a function that reallocates array and returns a new pointer to a buffer of length bytes, or 0 for error.
On success, the contents of the old buffer are copied to the new one. On success, the original array pointer will no longer be used. self is a pointer to the struct ndn_DynamicUInt8Array which is calling realloc. This function pointer may be 0 (which causes an error if a reallocate is necessary).