30 #include <ndn-cpp/c/common.h>
36 #if NDN_CPP_HAVE_MEMCMP
38 #if NDN_CPP_HAVE_MEMORY_H
46 static __inline
int ndn_memcmp(
const uint8_t *buf1,
const uint8_t *buf2,
size_t len)
52 return memcmp(buf1, buf2, len);
58 int ndn_memcmp(
const uint8_t *buf1,
const uint8_t *buf2,
size_t len);
61 #if NDN_CPP_HAVE_MEMCPY
63 #if NDN_CPP_HAVE_MEMORY_H
71 static __inline
void ndn_memcpy(uint8_t *dest,
const uint8_t *src,
size_t len)
75 memcpy(dest, src, len);
81 void ndn_memcpy(uint8_t *dest,
const uint8_t *src,
size_t len);
84 #if NDN_CPP_HAVE_MEMSET
86 #if NDN_CPP_HAVE_MEMORY_H
94 static __inline
void ndn_memset(uint8_t *dest,
int val,
size_t len)
98 memset(dest, val, len);
104 void ndn_memset(uint8_t *dest,
int val,
size_t len);