NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
wire::CcnbParser::Blob Class Reference

Class to represent BLOB ccnb-encoded node. More...

#include <blob.h>

Inheritance diagram for wire::CcnbParser::Blob:
Collaboration diagram for wire::CcnbParser::Blob:

Public Member Functions

 Blob (Buffer::Iterator &start, uint32_t length)
 Constructor that actually parsed ccnb-encoded BLOB block. More...
 
virtual void accept (VoidNoArguVisitor &v)
 Accept visitor void(*)()
 
virtual void accept (VoidVisitor &v, boost::any param)
 Accept visitor void(*)(boost::any)
 
virtual boost::any accept (NoArguVisitor &v)
 Accept visitor boost::any(*)()
 
virtual boost::any accept (Visitor &v, boost::any param)
 Accept visitor boost::any(*)(boost::any)
 

Public Attributes

char * m_blob
 field holding a parsed BLOB value of the block
 
uint32_t m_blobSize
 field representing size of the BLOB field stored
 

Additional Inherited Members

- Static Public Member Functions inherited from wire::CcnbParser::Block
static Ptr< BlockParseBlock (Buffer::Iterator &start)
 Parsing stream (recursively) and creating a parsed BLOCK object. More...
 

Detailed Description

Class to represent BLOB ccnb-encoded node.

See Also
http://www.ccnx.org/releases/latest/doc/technical/BinaryEncoding.html

Definition at line 37 of file blob.h.

Constructor & Destructor Documentation

wire::CcnbParser::Blob::Blob ( Buffer::Iterator &  start,
uint32_t  length 
)

Constructor that actually parsed ccnb-encoded BLOB block.

Parameters
startbuffer iterator pointing to the first byte of BLOB data in ccnb-encoded block
lengthlength of data in BLOB block (extracted from the value field)
See Also
http://www.ccnx.org/releases/latest/doc/technical/BinaryEncoding.html

Definition at line 28 of file blob.cc.

References m_blob, and m_blobSize.


The documentation for this class was generated from the following files: