#include <GtpLayer.h>
A class that represents GTP header extensions
◆ GtpExtension() [1/2]
pcpp::GtpV1Layer::GtpExtension::GtpExtension |
( |
| ) |
|
An empty c'tor that creates an empty object, meaning one that isNull() returns "true")
◆ GtpExtension() [2/2]
pcpp::GtpV1Layer::GtpExtension::GtpExtension |
( |
const GtpExtension & |
other | ) |
|
A copy c'tor for this class
◆ getContent()
uint8_t* pcpp::GtpV1Layer::GtpExtension::getContent |
( |
| ) |
const |
- Returns
- A byte array that includes the extension's content. The length of this array can be determined by getContentLength(). If the object is empty a null value is returned
◆ getContentLength()
size_t pcpp::GtpV1Layer::GtpExtension::getContentLength |
( |
| ) |
const |
- Returns
- The length of the extension's content, excluding the extension length and next extension type fields. If the object is empty a value of zero is returned
◆ getExtensionType()
uint8_t pcpp::GtpV1Layer::GtpExtension::getExtensionType |
( |
| ) |
const |
- Returns
- The extension type. If the object is empty a value of zero is returned
◆ getNextExtension()
GtpExtension pcpp::GtpV1Layer::GtpExtension::getNextExtension |
( |
| ) |
const |
- Returns
- An instance of this class representing the next extension header, if exists in the message. If there are no more header extensions or if this object is empty an empty instance of GtpExtension is returned, meaning one that GtpExtension::isNull() returns "true"
◆ getNextExtensionHeaderType()
uint8_t pcpp::GtpV1Layer::GtpExtension::getNextExtensionHeaderType |
( |
| ) |
const |
- Returns
- The extension type of the next header. If there are no more header extensions or if this object is empty a value of zero is returned
◆ getTotalLength()
size_t pcpp::GtpV1Layer::GtpExtension::getTotalLength |
( |
| ) |
const |
- Returns
- The total length of the extension including the length and next extension type fields. If the object is empty a value of zero is returned
◆ isNull()
bool pcpp::GtpV1Layer::GtpExtension::isNull |
( |
| ) |
const |
- Returns
- Instances of this class may be initialized as empty, meaning they don't contain any data. In these cases this method returns true
◆ operator=()
An assignment operator for this class