46 uint16_t m = size / 255;
48 uint8_t remainder = size % 255;
49 uint8_t n = (remainder > 0) ? 1 : 0;
51 return m * (2 + 255) + n * (2 + remainder);
97 uint16_t m = size / 255;
99 for (uint16_t index = 0; index < m; index++)
103 uint8_t length = 255;
109 for (uint8_t count = 0; count < length; count++)
116 uint8_t remainder = size % 255;
122 for (uint8_t count = 0; count < remainder; count++)
150 uint8_t elementId = i.
ReadU8();
160 uint16_t length = i.
ReadU8();
163 uint8_t elementIdExt = i.
ReadU8();
185 if (length < limit || tmp.IsEnd() || (tmp.PeekU8() !=
IE_FRAGMENT))
200 uint16_t count = length;
211 for (uint16_t index = 0; index < count; index++)
225 bufferIt = buffer.
Begin();
226 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.