All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
dynamic-malloc-uint8-array-lite.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
22 #ifndef NDN_DYNAMIC_MALLOC_UINT8_ARRAY_LITE_HPP
23 #define NDN_DYNAMIC_MALLOC_UINT8_ARRAY_LITE_HPP
24 
25 #include "dynamic-uint8-array-lite.hpp"
26 
27 namespace ndn {
28 
39 public:
44  DynamicMallocUInt8ArrayLite(size_t initialLength);
45 
50 
51 private:
59  static uint8_t*
60  realloc(struct ::ndn_DynamicUInt8Array *self, uint8_t *array, size_t length);
61 
62  // Disable the copy constructor and assignment operator.
65 
66  uint8_t *mallocArray_;
67 };
68 
69 }
70 
71 #endif
A DynamicUInt8ArrayLite holds a pointer to an allocated array, the length of the allocated array...
Definition: dynamic-uint8-array-lite.hpp:35
DynamicMallocUInt8ArrayLite(size_t initialLength)
Create a DynamicMallocUInt8ArrayLite with a buffer of the initial length.
Definition: dynamic-malloc-uint8-array-lite.cpp:27
size_t length
the length of the allocated array buffer
Definition: dynamic-uint8-array-types.h:44
A DynamicMallocUInt8ArrayLite extends DynamicUInt8ArrayLite to use malloc and realloc to resize the a...
Definition: dynamic-malloc-uint8-array-lite.hpp:38
uint8_t * array
the allocated array buffer
Definition: dynamic-uint8-array-types.h:43
~DynamicMallocUInt8ArrayLite()
Free the malloced array.
Definition: dynamic-malloc-uint8-array-lite.cpp:38