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) {
return memcmp(buf1, buf2, len); }
51 int ndn_memcmp(
const uint8_t *buf1,
const uint8_t *buf2,
size_t len);
54 #if NDN_CPP_HAVE_MEMCPY
56 #if NDN_CPP_HAVE_MEMORY_H
64 static __inline
void ndn_memcpy(uint8_t *dest,
const uint8_t *src,
size_t len) { memcpy(dest, src, len); }
69 void ndn_memcpy(uint8_t *dest,
const uint8_t *src,
size_t len);
72 #if NDN_CPP_HAVE_MEMSET
74 #if NDN_CPP_HAVE_MEMORY_H
82 static __inline
void ndn_memset(uint8_t *dest,
int val,
size_t len) { memset(dest, val, len); }
87 void ndn_memset(uint8_t *dest,
int val,
size_t len);