A Discrete-Event Network Simulator
API
encode-decode.cc File Reference
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stdint.h>
#include <string>
+ Include dependency graph for encode-decode.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

std::string ns3::BufferToString (uint8_t *buffer, uint32_t len)
 Convert a byte buffer to a string containing a hex representation of the buffer. More...
 
bool ns3::StringToBuffer (std::string s, uint8_t *buffer, uint32_t *len)
 Convert string encoded by the inverse function (TapBufferToString) back into a byte buffer. More...