A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
buffer.cc File Reference
#include "buffer.h"
#include "ns3/assert.h"
#include "ns3/log.h"
+ Include dependency graph for buffer.cc:

Go to the source code of this file.

Classes

struct  anonymous_namespace{buffer.cc}::Zeroes
 Zero-filled buffer. More...
 

Namespaces

namespace  anonymous_namespace{buffer.cc}
 
namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define DESTROYED   ((Buffer::FreeList*)MAGIC_DESTROYED)
 
#define IS_DESTROYED(x)   (x == (Buffer::FreeList*)MAGIC_DESTROYED)
 
#define IS_INITIALIZED(x)   (!IS_UNINITIALIZED(x) && !IS_DESTROYED(x))
 
#define IS_UNINITIALIZED(x)   (x == (Buffer::FreeList*)0)
 
#define LOG_INTERNAL_STATE(y)
 
#define MAGIC_DESTROYED   (~(long)0)
 
#define UNINITIALIZED   ((Buffer::FreeList*)0)
 

Variables

constexpr uint32_t ns3::ALLOC_OVER_PROVISION = 100
 Additional bytes to over-provision.
 
struct anonymous_namespace{buffer.cc}::Zeroes anonymous_namespace{buffer.cc}::g_zeroes
 Zero-filled buffer.
 

Macro Definition Documentation

◆ DESTROYED

#define DESTROYED   ((Buffer::FreeList*)MAGIC_DESTROYED)

Definition at line 80 of file buffer.cc.

◆ IS_DESTROYED

#define IS_DESTROYED (   x)    (x == (Buffer::FreeList*)MAGIC_DESTROYED)

Definition at line 78 of file buffer.cc.

◆ IS_INITIALIZED

#define IS_INITIALIZED (   x)    (!IS_UNINITIALIZED(x) && !IS_DESTROYED(x))

Definition at line 79 of file buffer.cc.

◆ IS_UNINITIALIZED

#define IS_UNINITIALIZED (   x)    (x == (Buffer::FreeList*)0)

Definition at line 77 of file buffer.cc.

◆ LOG_INTERNAL_STATE

#define LOG_INTERNAL_STATE (   y)
Value:
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)
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:282

Definition at line 24 of file buffer.cc.

◆ MAGIC_DESTROYED

#define MAGIC_DESTROYED   (~(long)0)

Definition at line 76 of file buffer.cc.

◆ UNINITIALIZED

#define UNINITIALIZED   ((Buffer::FreeList*)0)

Definition at line 81 of file buffer.cc.