PcapPlusPlus  20.08
pcpp::IDataContainer Class Referenceabstract

#include <Layer.h>

Inheritance diagram for pcpp::IDataContainer:
pcpp::Layer pcpp::ArpLayer pcpp::BgpLayer pcpp::DhcpLayer pcpp::DnsLayer pcpp::EthDot3Layer pcpp::EthLayer pcpp::GreLayer pcpp::GtpV1Layer pcpp::IcmpLayer pcpp::IgmpLayer pcpp::IPv4Layer pcpp::IPv6Layer pcpp::MplsLayer pcpp::NullLoopbackLayer pcpp::PacketTrailerLayer pcpp::PayloadLayer pcpp::PPP_PPTPLayer pcpp::PPPoELayer pcpp::RadiusLayer pcpp::SllLayer pcpp::SSLLayer pcpp::TcpLayer pcpp::TextBasedProtocolMessage pcpp::UdpLayer pcpp::VlanLayer pcpp::VxlanLayer

Public Member Functions

virtual uint8_t * getDataPtr (size_t offset=0) const =0
 

Detailed Description

An interface (virtual abstract class) that indicates an object that holds a pointer to a buffer data. The Layer class is an example of such object, hence it inherits this interface

Member Function Documentation

◆ getDataPtr()

virtual uint8_t* pcpp::IDataContainer::getDataPtr ( size_t  offset = 0) const
pure virtual

Get a pointer to the data

Parameters
[in]offsetGet a pointer in a certain offset. Default is 0 - get a pointer to start of data
Returns
A pointer to the data

Implemented in pcpp::Layer.