A DerByteString extends DerNode to handle byte strings.
More...
#include <der-node.hpp>
|
| | DerByteString (const uint8_t *inputData, size_t inputDataLength, DerNodeType nodeType) |
| | Create a DerByteString with the given inputData and nodeType. 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...
|
| |
A DerByteString extends DerNode to handle byte strings.
Create a DerByteString with the given inputData and nodeType.
This is a protected constructor used by one of the public subclasses such as DerOctetString or DerPrintableString.
- Parameters
-
| inputData | An input buffer containing the string to encode. |
| inputDataLength | The length of inputData. |
| nodeType | The specific DER node type. |
| Blob ndn::DerNode::DerByteString::toVal |
( |
| ) |
|
|
virtual |
Override to return just the byte string.
- Returns
- The byte string as a copy of the payload ByteBuffer.
Reimplemented from ndn::DerNode.
The documentation for this class was generated from the following files: