A DerBitString extends DerNode to handle a bit string. More...
#include <der-node.hpp>
Public Member Functions | |
| DerBitString (const uint8_t *inputBuf, size_t inputBufLength, int paddingLength) | |
| Create a DerBitString with the given padding and inputBuf. More... | |
Public Member Functions inherited from ndn::DerNode | |
| virtual size_t | getSize () |
| virtual Blob | encode () |
| Get the raw data encoding for this node. More... | |
| virtual Blob | toVal () |
| Convert the encoded data to a standard representation. More... | |
| Blob | getPayload () |
| Get a copy of the payload bytes. More... | |
| virtual const std::vector < ptr_lib::shared_ptr< DerNode > > & | getChildren () |
| If this object is a DerSequence, get the children of this node. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ndn::DerNode | |
| static ptr_lib::shared_ptr < DerNode > | parse (const uint8_t *inputBuf, size_t inputBufLength, 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 ptr_lib::shared_ptr < DerNode > | parse (const Blob &input, size_t startIdx=0) |
|
static ptr_lib::shared_ptr < DerNode > | parse (const std::vector< uint8_t > &input, size_t startIdx=0) |
| 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... | |
Protected Member Functions inherited from ndn::DerNode | |
| 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 inputBufLength, size_t startIdx) |
| Extract the header from an input buffer and return the size. More... | |
| virtual void | decode (const uint8_t *inputBuf, size_t inputBufLength, 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... | |
Protected Attributes inherited from ndn::DerNode | |
| DerStructure * | parent_ |
| DerNodeType | nodeType_ |
| std::vector< uint8_t > | header_ |
| DynamicUInt8Vector | payload_ |
| size_t | payloadPosition_ |
A DerBitString extends DerNode to handle a bit string.
|
inline |
Create a DerBitString with the given padding and inputBuf.
| inputBuf | An input buffer containing the bit octets to encode. |
| inputBufLength | The number of bytes in inputBuf. |
| paddingLength | The number of bits of padding at the end of the bit string. Should be less than 8. |
1.8.6