All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
dynamic-uint8-array-types.h
1 
21 #ifndef NDN_DYNAMIC_UINT8_ARRAY_TYPES_H
22 #define NDN_DYNAMIC_UINT8_ARRAY_TYPES_H
23 
24 #include "../common.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 typedef uint8_t * (*ndn_ReallocFunction)
35  (struct ndn_DynamicUInt8Array *self, uint8_t *array, size_t length);
36 
43  uint8_t *array;
44  size_t length;
45  ndn_ReallocFunction realloc;
50 };
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated arr...
Definition: dynamic-uint8-array-types.h:42
size_t length
the length of the allocated array buffer
Definition: dynamic-uint8-array-types.h:44
uint8_t * array
the allocated array buffer
Definition: dynamic-uint8-array-types.h:43
ndn_ReallocFunction realloc
a pointer to a function that reallocates array and returns a new pointer to a buffer of length bytes...
Definition: dynamic-uint8-array-types.h:45