PcapPlusPlus  24.09
pcpp::IDataContainer Class Referenceabstract

#include <Layer.h>

Inheritance diagram for pcpp::IDataContainer:
pcpp::Layer pcpp::ArpLayer pcpp::AuthenticationHeaderLayer pcpp::BgpLayer pcpp::CotpLayer pcpp::DhcpLayer pcpp::DhcpV6Layer pcpp::DnsLayer pcpp::ESPLayer pcpp::EthDot3Layer pcpp::EthLayer pcpp::GreLayer pcpp::GtpV1Layer pcpp::IPv4Layer pcpp::IPv6Layer pcpp::IcmpLayer pcpp::IcmpV6Layer pcpp::IgmpLayer pcpp::LLCLayer pcpp::LdapLayer pcpp::MplsLayer pcpp::NflogLayer pcpp::NtpLayer pcpp::NullLoopbackLayer pcpp::PPP_PPTPLayer pcpp::PPPoELayer pcpp::PacketTrailerLayer pcpp::PayloadLayer pcpp::RadiusLayer pcpp::S7CommLayer pcpp::SSHLayer pcpp::SSLLayer pcpp::SingleCommandTextProtocol pcpp::Sll2Layer pcpp::SllLayer pcpp::SomeIpLayer pcpp::StpLayer pcpp::TcpLayer pcpp::TelnetLayer pcpp::TextBasedProtocolMessage pcpp::TpktLayer pcpp::UdpLayer pcpp::VlanLayer pcpp::VrrpLayer pcpp::VxlanLayer pcpp::WakeOnLanLayer

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.