PcapPlusPlus  22.11
pcpp::IDataContainer Class Referenceabstract

#include <Layer.h>

Inheritance diagram for pcpp::IDataContainer:
pcpp::Layer pcpp::ArpLayer pcpp::AuthenticationHeaderLayer pcpp::BgpLayer pcpp::DhcpLayer pcpp::DhcpV6Layer pcpp::DnsLayer pcpp::ESPLayer pcpp::EthDot3Layer pcpp::EthLayer pcpp::GreLayer pcpp::GtpV1Layer pcpp::IcmpLayer pcpp::IcmpV6Layer pcpp::IgmpLayer pcpp::IPv4Layer pcpp::IPv6Layer pcpp::LLCLayer pcpp::MplsLayer pcpp::NtpLayer pcpp::NullLoopbackLayer pcpp::PacketTrailerLayer pcpp::PayloadLayer pcpp::PPP_PPTPLayer pcpp::PPPoELayer pcpp::RadiusLayer pcpp::SingleCommandTextProtocol pcpp::SllLayer pcpp::SomeIpLayer pcpp::SSHLayer pcpp::SSLLayer pcpp::StpLayer pcpp::TcpLayer pcpp::TelnetLayer pcpp::TextBasedProtocolMessage pcpp::UdpLayer pcpp::VlanLayer 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.