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