This module defines the Der object with known DER node types.
Bases: object
Exceptions that may occur during DER encoding/decoding Correspond to exceptions in ndn-cpp
Bases: object
Decode and store the data from an input buffer. :param inputBuf: The input buffer to read from. :type inputBuf: bytearray or Blob :param startIdx: (optional) An offset into the buffer. :type startIdx: int
If this object is a DerSequence, get the children of this node. Otherwise, raise an exception. (DerSequence overrides to implement this method.) :return: The children of this node :rtype: array of DerNode :raises: DerDecodingException if this object is not a DerSequence.
Check that index is in bounds for the children list, and return children[index].
Parameters: |
|
---|---|
Returns: | children[index] which is a DerSequence |
Return type: | DerSequence |
Raises : | DerDecodingException if index is out of bounds or if children[index] is not a DerSequence. |
Get the total length of the encoding. :return: The total (header + payload) length :rtype: int
Bases: pyndn.encoding.der.der_node.DerNode
Add a child to this node. :param node: The child node to add. :type node: DerNode :param notifyParent: (optional) Set to true to cause any containing nodes to update their size :type notifyParent: boolean
Decode and store the data from an input buffer. Recursively populates child nodes. :param inputBuf: The input buffer to read from. :type inputBuf: bytearray or Blob :param startIdx: (optional) An offset into the buffer. :type startIdx: int