22 #include "ns3/abort.h"
51 for (uint32_t index = 0; index < size; index++)
75 for (uint8_t i = 0; i < size; i++)
93 m_blob.push_back(*index & 0x80);
94 m_blob.push_back(*index & 0x40);
95 m_blob.push_back(*index & 0x20);
96 m_blob.push_back(*index & 0x10);
97 m_blob.push_back(*index & 0x8);
98 m_blob.push_back(*index & 0x4);
99 m_blob.push_back(*index & 0x2);
100 m_blob.push_back(*index & 0x1);
void PushBytes(std::vector< uint8_t > bytes)
Pushes some bytes into the blob to be deserialized.
std::vector< uint8_t > m_bytesBlob
Blob of bytes to be deserialized.
void PrepareDeserialization()
Prepare the byte array to the deserialization.
void PushByte(uint8_t byte)
Pushes one byte into the blob to be deserialized.
bool m_deserializing
True if the deserialization did start already.
std::deque< bool > m_blob
Blob of bits ready to be deserialized.
uint64_t GetBits(uint8_t size)
Pops a given number of bits from the blob front.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.