#include "buffer.h"
#include <stdint.h>
#include <vector>
#include "ns3/assert.h"
#include <string.h>
#include "ns3/log.h"
#include <iostream>
#include "ns3/test.h"
#include "ns3/random-variable.h"
#include <iomanip>
Go to the source code of this file.
Classes | |
struct | ns3::BufferData |
class | ns3::BufferDataList |
class | ns3::BufferTest |
Namespaces | |
namespace | ns3 |
Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
Defines | |
#define | LOG_INTERNAL_STATE(y) |
#define | HEURISTICS(x) x |
#define | ENSURE_WRITTEN_BYTES(buffer, n,...) |
Functions | |
NS_LOG_COMPONENT_DEFINE ("Buffer") | |
static struct BufferData * | ns3::BufferAllocate (uint32_t reqSize) |
static void | ns3::BufferDeallocate (struct BufferData *data) |
Variables | |
static uint32_t | ns3::g_recommendedStart = 0 |
static uint64_t | ns3::g_nAddNoRealloc = 0 |
static uint64_t | ns3::g_nAddRealloc = 0 |
static BufferDataList | ns3::g_freeList |
static uint32_t | ns3::g_maxSize = 0 |
static uint64_t | ns3::g_nAllocs = 0 |
static uint64_t | ns3::g_nCreates = 0 |
static BufferTest | ns3::gBufferTest |
#define ENSURE_WRITTEN_BYTES | ( | buffer, | |||
n, | |||||
... | ) |
{ \ uint8_t bytes[] = {__VA_ARGS__}; \ if (!EnsureWrittenBytes (buffer, n , bytes)) \ { \ result = false; \ } \ }
Definition at line 1201 of file buffer.cc.
Referenced by ns3::BufferTest::RunTests().
#define HEURISTICS | ( | x | ) | x |
Definition at line 33 of file buffer.cc.
Referenced by ns3::Buffer::AddAtEnd(), ns3::Buffer::AddAtStart(), ns3::Buffer::operator=(), ns3::Buffer::RemoveAtEnd(), ns3::Buffer::RemoveAtStart(), and ns3::Buffer::~Buffer().
#define LOG_INTERNAL_STATE | ( | y | ) |
NS_LOG_LOGIC (y << "start="<<m_start<<", end="<<m_end<<", zero start="<<m_zeroAreaStart<< \ ", zero end="<<m_zeroAreaEnd<<", count="<<m_data->m_count<<", size="<<m_data->m_size<< \ ", dirty start="<<m_data->m_dirtyStart<<", dirty end="<<m_data->m_dirtyEnd)
Definition at line 27 of file buffer.cc.
Referenced by ns3::Buffer::AddAtEnd(), ns3::Buffer::AddAtStart(), ns3::Buffer::CheckInternalState(), ns3::Buffer::RemoveAtEnd(), and ns3::Buffer::RemoveAtStart().
NS_LOG_COMPONENT_DEFINE | ( | "Buffer" | ) |