Main Page
Related Pages
Namespaces
Classes
Files
File List
src
c
util
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
58
static
__inline
int
59
ndn_Blob_isNull(
const
struct
ndn_Blob
*
self
) {
return
!
self
->value; }
60
69
int
70
ndn_Blob_equals(
const
struct
ndn_Blob
*
self
,
const
struct
ndn_Blob
*other);
71
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#endif
ndn_Blob
Copyright (C) 2015-2016 Regents of the University of California.
Definition:
blob-types.h:33
Generated on Wed Nov 2 2016 11:38:52 by
1.8.9.1