blob.h
1 
21 #ifndef NDN_BLOB_H
22 #define NDN_BLOB_H
23 
24 #include <ndn-cpp/c/util/blob-types.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
36 static __inline void ndn_Blob_initialize(struct ndn_Blob *self, const uint8_t *value, size_t length)
37 {
38  self->value = value;
39  self->length = length;
40 }
41 
47 static __inline void
48 ndn_Blob_setFromBlob(struct ndn_Blob *self, const struct ndn_Blob *other)
49 {
50  *self = *other;
51 }
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif
Copyright (C) 2015-2016 Regents of the University of California.
Definition: blob-types.h:33