35 uint16_t m = size / 255;
37 uint8_t remainder = size % 255;
38 uint8_t n = (remainder > 0) ? 1 : 0;
40 return m * (2 + 255) + n * (2 + remainder);
86 uint16_t m = size / 255;
88 for (uint16_t index = 0; index < m; index++)
98 for (uint8_t count = 0; count < length; count++)
105 uint8_t remainder = size % 255;
111 for (uint8_t count = 0; count < remainder; count++)
139 uint8_t elementId = i.
ReadU8();
149 uint16_t length = i.
ReadU8();
152 uint8_t elementIdExt = i.
ReadU8();
174 if (length < limit || tmp.IsEnd() || (tmp.PeekU8() !=
IE_FRAGMENT))
189 uint16_t count = length;
200 for (uint16_t index = 0; index < count; index++)
214 bufferIt = buffer.
Begin();
215 bufferIt.
Next(length);
iterator in a Buffer instance
void WriteU8(uint8_t data)
uint32_t GetDistanceFrom(const Iterator &o) const
void Next()
go forward by one byte
automatically resized byte buffer
void AddAtStart(uint32_t start)
Buffer::Iterator Begin() const
void AddAtEnd(uint32_t end)
const uint8_t * PeekData() const
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.