Public Attributes | List of all members
ndn_DynamicUInt8Array Struct Reference

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>

Inheritance diagram for ndn_DynamicUInt8Array:
ndn::DynamicUInt8ArrayLite ndn::DynamicUInt8Vector

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...
 

Detailed Description

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.

Member Data Documentation

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).


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