tlv-0_1_1-wire-format.h
1 
21 #ifndef NDN_TLV_0_1_1_WIRE_FORMAT_H
22 #define NDN_TLV_0_1_1_WIRE_FORMAT_H
23 
24 #include <ndn-cpp/c/common.h>
25 #include <ndn-cpp/c/errors.h>
26 
27 struct ndn_Interest;
28 struct ndn_Data;
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
52 ndn_Error
53 ndn_Tlv0_1_1WireFormat_encodeInterest
54  (const struct ndn_Interest *interest, size_t *signedPortionBeginOffset,
55  size_t *signedPortionEndOffset, struct ndn_DynamicUInt8Array *output,
56  size_t *encodingLength);
57 
74 ndn_Error
75 ndn_Tlv0_1_1WireFormat_decodeInterest
76  (struct ndn_Interest *interest, const uint8_t *input, size_t inputLength,
77  size_t *signedPortionBeginOffset, size_t *signedPortionEndOffset);
78 
94 ndn_Error
95 ndn_Tlv0_1_1WireFormat_encodeData
96  (const struct ndn_Data *data, size_t *signedPortionBeginOffset,
97  size_t *signedPortionEndOffset, struct ndn_DynamicUInt8Array *output,
98  size_t *encodingLength);
99 
113 ndn_Error
114 ndn_Tlv0_1_1WireFormat_decodeData
115  (struct ndn_Data *data, const uint8_t *input, size_t inputLength,
116  size_t *signedPortionBeginOffset, size_t *signedPortionEndOffset);
117 
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif
Definition: data-types.h:86
An ndn_Interest holds an ndn_Name and other fields for an interest.
Definition: interest-types.h:70
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated arr...
Definition: dynamic-uint8-array-types.h:40