22 #ifndef NDN_DATA_LITE_HPP
23 #define NDN_DATA_LITE_HPP
25 #include "meta-info-lite.hpp"
26 #include "signature-lite.hpp"
27 #include "../c/data-types.h"
123 friend class Tlv0_1_1WireFormatLite;
ndn_Error set(const DataLite &other)
Set this data packet object to have the values from the other data.
Definition: data-lite.cpp:37
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
ndn_Error setName(const NameLite &name)
Set this data packet's name to have the values from the given name.
Definition: data-lite.hpp:83
A NameLite holds an array of NameLite::Component.
Definition: name-lite.hpp:34
A SignatureLite holds a signature type, a KeyLocatorLite, the signature bytes and other fields to rep...
Definition: signature-lite.hpp:36
Definition: data-types.h:78
struct ndn_Blob content
A Blob with a pointer to the content.
Definition: data-types.h:82
static DataLite & downCast(ndn_Data &data)
Downcast the reference to the ndn_Data struct to a DataLite.
Definition: data-lite.hpp:116
static BlobLite & downCast(ndn_Blob &blob)
Downcast the reference to the ndn_Blob struct to a BlobLite.
Definition: blob-lite.hpp:76
ndn_Error set(const NameLite &other)
Set this name to have the values from the other name.
Definition: name-lite.cpp:216
DataLite(ndn_NameComponent *nameComponents, size_t maxNameComponents, ndn_NameComponent *keyNameComponents, size_t maxKeyNameComponents)
Create a DataLite with the pre-allocated nameComponents and keyNameComponents, and defaults for all t...
Definition: data-lite.cpp:28
Copyright (C) 2015-2016 Regents of the University of California.
Definition: name-types.h:33
A BlobLite holds a pointer to an immutable pre-allocated buffer and its length This is like a JavaScr...
Definition: blob-lite.hpp:37
DataLite & setContent(const BlobLite &content)
Set this data packet's content.
Definition: data-lite.hpp:95
static SignatureLite & downCast(ndn_Signature &signature)
Downcast the reference to the ndn_Signature struct to a SignatureLite.
Definition: signature-lite.hpp:132
static NameLite & downCast(ndn_Name &name)
Downcast the reference to the ndn_Name struct to a NameLite.
Definition: name-lite.hpp:429
A DataLite holds a NameLite and other fields to represent an NDN Data packet.
Definition: data-lite.hpp:34