A DerOid extends DerNode to represent an object identifier.
More...
#include <der-node.hpp>
|
| static ptr_lib::shared_ptr< DerNode > | parse (const uint8_t *inputBuf, size_t startIdx=0) |
| | Parse the data from the input buffer recursively and return the root as an object of a subclass of DerNode. More...
|
| |
| static DerNode::DerSequence & | getSequence (const std::vector< ptr_lib::shared_ptr< DerNode > > &children, size_t index) |
| | Check that index is in bounds for the children list, cast children[index] to DerSequence and return it. More...
|
| |
| | DerNode (DerNodeType nodeType) |
| | Create a generic DER node with the given nodeType. More...
|
| |
| void | encodeHeader (size_t size) |
| | Encode the given size and update the header. More...
|
| |
| size_t | decodeHeader (const uint8_t *inputBuf, size_t startIdx) |
| | Extract the header from an input buffer and return the size. More...
|
| |
| virtual void | decode (const uint8_t *inputBuf, size_t startIdx) |
| | Decode and store the data from an input buffer. More...
|
| |
| void | payloadAppend (const uint8_t *value, size_t valueLength) |
| | Call payload_.copy to copy value into payload_ at payloadPosition_. More...
|
| |
|
DerStructure * | parent_ |
| |
|
DerNodeType | nodeType_ |
| |
|
std::vector< uint8_t > | header_ |
| |
|
DynamicUInt8Vector | payload_ |
| |
|
size_t | payloadPosition_ |
| |
A DerOid extends DerNode to represent an object identifier.
Create a DerOid with the given object identifier.
The object identifier string must begin with 0,1, or 2 and must contain at least 2 digits.
- Parameters
-
| oidStr | The OID string to encode. |
Create a DerOid with the given object identifier.
The object identifier string must begin with 0,1, or 2 and must contain at least 2 digits.
- Parameters
-
| oid | The OID string to encode. |
| Blob ndn::DerNode::DerOid::toVal |
( |
| ) |
|
|
virtual |
Override to return the string representation of the OID.
- Returns
- The string representation of the OID as bytes in a Blob.
Reimplemented from ndn::DerNode.
The documentation for this class was generated from the following files: