22 #ifndef NDN_WIREFORMAT_HPP
23 #define NDN_WIREFORMAT_HPP
25 #include "../common.hpp"
26 #include "../util/blob.hpp"
33 class ControlParameters;
34 class ControlResponse;
37 class EncryptedContent;
80 (
const Interest& interest,
size_t *signedPortionBeginOffset,
81 size_t *signedPortionEndOffset);
92 size_t dummyBeginOffset, dummyEndOffset;
93 return encodeInterest(interest, &dummyBeginOffset, &dummyEndOffset);
119 (
Interest& interest,
const uint8_t *input,
size_t inputLength,
120 size_t *signedPortionBeginOffset,
size_t *signedPortionEndOffset);
125 size_t dummyBeginOffset, dummyEndOffset;
127 (interest, input, inputLength, &dummyBeginOffset, &dummyEndOffset);
142 (
const Data& data,
size_t *signedPortionBeginOffset,
size_t *signedPortionEndOffset);
153 size_t dummyBeginOffset, dummyEndOffset;
154 return encodeData(data, &dummyBeginOffset, &dummyEndOffset);
172 (
Data& data,
const uint8_t *input,
size_t inputLength,
size_t *signedPortionBeginOffset,
size_t *signedPortionEndOffset);
177 size_t dummyBeginOffset, dummyEndOffset;
178 decodeData(data, input, inputLength, &dummyBeginOffset, &dummyEndOffset);
202 (ControlParameters& controlParameters,
const uint8_t *input,
226 (ControlResponse& controlResponse,
const uint8_t *input,
262 virtual ptr_lib::shared_ptr<Signature>
264 (
const uint8_t *signatureInfo,
size_t signatureInfoLength,
265 const uint8_t *signatureValue,
size_t signatureValueLength);
274 virtual ptr_lib::shared_ptr<Signature>
276 (
const Blob& signatureInfo,
const Blob& signatureValue)
279 (signatureInfo.
buf(), signatureInfo.
size(), signatureValue.
buf(),
280 signatureValue.
size());
303 (
DelegationSet& delegationSet,
const uint8_t *input,
size_t inputLength);
337 defaultWireFormat_ = wireFormat;
356 newInitialDefaultWireFormat();
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
An EncryptedContent holds an encryption type, a payload and other fields representing encrypted conte...
Definition: encrypted-content.hpp:37
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
A DelegationSet holds a list of DelegationSet::Delegation entries which is used as the content of a L...
Definition: delegation-set.hpp:38
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
Definition: blob.hpp:42
An Interest holds a Name and other fields for an interest.
Definition: interest.hpp:41
const uint8_t * buf() const
Return a const pointer to the first byte of the immutable byte array, or 0 if the pointer is null...
Definition: blob.hpp:159
size_t size() const
Return the length of the immutable byte array.
Definition: blob.hpp:147