|
PcapPlusPlus
Next
|
#include <Asn1Codec.h>
Public Member Functions | |
| Asn1ObjectIdentifier (const uint8_t *data, size_t dataLen) | |
| Asn1ObjectIdentifier (const std::string &oidString) | |
| const std::vector< uint32_t > & | getComponents () const |
| bool | operator== (const Asn1ObjectIdentifier &other) const |
| bool | operator!= (const Asn1ObjectIdentifier &other) const |
| std::string | toString () const |
| std::vector< uint8_t > | toBytes () const |
Represents an ASN.1 Object Identifier (OID).
|
explicit |
Construct an OID from an encoded byte buffer
| [in] | data | The byte buffer of the encoded OID data |
| [in] | dataLen | The byte buffer size |
|
explicit |
Construct an OID from its string representation (e.g., "1.2.840.113549").
| [in] | oidString | The string representation of the OID |
| std::invalid_argument | if the string is malformed or contains invalid components |
|
inline |
|
inline |
Inequality operator to compare two OIDs
| [in] | other | Another Asn1ObjectIdentifier instance |
|
inline |
Equality operator to compare two OIDs
| [in] | other | Another Asn1ObjectIdentifier instance |
| std::vector<uint8_t> pcpp::Asn1ObjectIdentifier::toBytes | ( | ) | const |
Encode the OID to a byte buffer
| std::string pcpp::Asn1ObjectIdentifier::toString | ( | ) | const |
Convert the OID to its string representation (e.g., "1.2.840.113549")