96 void setPayload(
const uint8_t* newPayload,
size_t newPayloadLength);
Definition: PayloadLayer.h:19
uint8_t * getPayload() const
Definition: PayloadLayer.h:54
OsiModelLayer getOsiModelLayer() const override
Definition: PayloadLayer.h:100
void parseNextLayer() override
Definition: PayloadLayer.h:73
void computeCalculateFields() override
Definition: PayloadLayer.h:87
PayloadLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: PayloadLayer.h:27
PayloadLayer(const std::string &payloadAsHexStream)
PayloadLayer(const uint8_t *data, size_t dataLen)
void setPayload(const uint8_t *newPayload, size_t newPayloadLength)
size_t getPayloadLen() const
Definition: PayloadLayer.h:63
std::string toString() const override
size_t getHeaderLen() const override
Definition: PayloadLayer.h:79
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelApplicationLayer
Definition: ProtocolType.h:378
const ProtocolType GenericPayload
Definition: ProtocolType.h:178