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"
128 static void Enable (
void);
155 uint64_t
GetUid (
void)
const;
162 uint32_t
Serialize (uint8_t* buffer, uint32_t maxSize)
const;
163 uint32_t
Deserialize (
const uint8_t* buffer, uint32_t size);
194 const uint8_t*
start,
199 const uint8_t*
start,
204 const uint8_t*
start,
209 const uint8_t*
start,
217 #define PACKET_METADATA_DATA_M_DATA_SIZE 8
307 uint16_t
AddBig (uint32_t head, uint32_t tail,
316 uint32_t
ReadUleb128 (
const uint8_t **pBuffer)
const;
317 inline void Append16 (uint16_t value, uint8_t *buffer);
318 inline void Append32 (uint32_t value, uint8_t *buffer);
319 inline void AppendValue (uint32_t value, uint8_t *buffer);
321 inline void Reserve (uint32_t n);
384 m_packetUid (o.m_packetUid)
automatically resized byte buffer
#define NS_ASSERT(condition)
iterator in a Buffer instance
Protocol trailer serialization and deserialization.
a unique identifier for an interface.