dynamic-uint8-array-types.h
1 
21 #ifndef NDN_DYNAMIC_UINT8_ARRAY_TYPES_H
22 #define NDN_DYNAMIC_UINT8_ARRAY_TYPES_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 typedef uint8_t * (*ndn_ReallocFunction)
33  (struct ndn_DynamicUInt8Array *self, uint8_t *array, size_t length);
34 
41  uint8_t *array;
42  size_t length;
43  ndn_ReallocFunction realloc;
48 };
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated arr...
Definition: dynamic-uint8-array-types.h:40
size_t length
the length of the allocated array buffer
Definition: dynamic-uint8-array-types.h:42
uint8_t * array
the allocated array buffer
Definition: dynamic-uint8-array-types.h:41
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:43