20 #ifndef PACKET_METADATA_H
21 #define PACKET_METADATA_H
26 #include "ns3/callback.h"
27 #include "ns3/assert.h"
28 #include "ns3/type-id.h"
158 static void Enable (
void);
246 uint64_t
GetUid (
void)
const;
267 uint32_t
Serialize (uint8_t* buffer, uint32_t maxSize)
const;
274 uint32_t
Deserialize (
const uint8_t* buffer, uint32_t size);
359 const uint8_t*
start,
360 const uint8_t* current,
373 const uint8_t*
start,
374 const uint8_t* current,
387 const uint8_t*
start,
388 const uint8_t* current,
401 const uint8_t*
start,
402 const uint8_t* current,
409 #define PACKET_METADATA_DATA_M_DATA_SIZE 8
526 uint16_t
AddBig (uint32_t head, uint32_t tail,
561 uint32_t
ReadUleb128 (
const uint8_t **pBuffer)
const;
567 inline void Append16 (uint16_t value, uint8_t *buffer);
573 inline void Append32 (uint32_t value, uint8_t *buffer);
579 inline void AppendValue (uint32_t value, uint8_t *buffer);
594 inline void Reserve (uint32_t n);
712 m_packetUid (o.m_packetUid)
iterator in a Buffer instance
automatically resized byte buffer
Protocol trailer serialization and deserialization.
a unique identifier for an interface.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.