PcapPlusPlus
Next
|
#include <GtpLayer.h>
Public Member Functions | |
GtpV2InformationElementBuilder (GtpV2InformationElement::Type infoElementType, const std::bitset< 4 > &crFlag, const std::bitset< 4 > &instance, const std::vector< uint8_t > &infoElementValue) | |
GtpV2InformationElement | build () const |
A class for building GTPv2 information elements (IE). This builder receives the IE parameters in its c'tor, builds the IE raw buffer and provides a build() method to get a GtpV2InformationElement object out of it
pcpp::GtpV2InformationElementBuilder::GtpV2InformationElementBuilder | ( | GtpV2InformationElement::Type | infoElementType, |
const std::bitset< 4 > & | crFlag, | ||
const std::bitset< 4 > & | instance, | ||
const std::vector< uint8_t > & | infoElementValue | ||
) |
A c'tor for building information elements (IE) which their value is a byte array. The GtpV2InformationElement object can be later retrieved by calling build().
[in] | infoElementType | Information elements (IE) type |
[in] | crFlag | CR flag value |
[in] | instance | Instance value |
[in] | infoElementValue | A byte array of the IE value |
GtpV2InformationElement pcpp::GtpV2InformationElementBuilder::build | ( | ) | const |
Build the GtpV2InformationElement object out of the parameters defined in the c'tor