PcapPlusPlus
Next
|
#include <Asn1Codec.h>
Public Member Functions | |
Asn1IntegerRecord (uint64_t value) | |
Asn1IntegerRecord (const std::string &value) | |
template<typename T , EnableIfUnsignedIntegral< T > = 0> | |
T | getIntValue () |
uint32_t | getValue () |
std::string | getValueAsString () |
![]() | |
std::vector< uint8_t > | encode () |
Asn1TagClass | getTagClass () const |
bool | isConstructed () const |
Asn1UniversalTagType | getUniversalTagType () const |
uint8_t | getTagType () const |
size_t | getValueLength () const |
size_t | getTotalLength () const |
std::string | toString () |
template<class Asn1RecordType > | |
Asn1RecordType * | castAs () |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< Asn1Record > | decode (const uint8_t *data, size_t dataLen, bool lazy=true) |
Represents an ASN.1 record with a value of type Integer
|
explicit |
A constructor to create a record of type Integer
value | An integer to set as the record value |
|
explicit |
A constructor to create a record of type Integer
value | An integer represented as a hex stream to set as the record value |
std::invalid_argument | if the value isn't a valid hex stream |
|
inline |
std::invalid_argument | if the value doesn't fit the requested integer size |
|
inline |
|
inline |