CatapultServer  v0.5.0.1 (Elephant)
catapult::ionet::Packet Struct Reference

A packet header with a data payload. More...

Inheritance diagram for catapult::ionet::Packet:
Collaboration diagram for catapult::ionet::Packet:

Public Member Functions

uint8_t * Data ()
 Returns a non-const pointer to data contained in this packet. More...
 
constexpr const uint8_t * Data () const
 Returns a const pointer to data contained in this packet. More...
 
- Public Member Functions inherited from catapult::utils::NonCopyable
constexpr NonCopyable ()=default
 Default constructor. More...
 
 ~NonCopyable ()=default
 Default destructor. More...
 
 NonCopyable (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
NonCopyableoperator= (const NonCopyable &)=delete
 Disabled assignment operator. More...
 

Additional Inherited Members

- Public Attributes inherited from catapult::ionet::PacketHeader
uint32_t Size
 Size of the packet. More...
 
PacketType Type
 Type of the packet. More...
 

Detailed Description

A packet header with a data payload.

Member Function Documentation

◆ Data() [1/2]

uint8_t* catapult::ionet::Packet::Data ( )
inline

Returns a non-const pointer to data contained in this packet.

Here is the caller graph for this function:

◆ Data() [2/2]

constexpr const uint8_t* catapult::ionet::Packet::Data ( ) const
inlineconstexpr

Returns a const pointer to data contained in this packet.


The documentation for this struct was generated from the following file: