ns3::BufferData Struct Reference

List of all members.

Public Attributes

uint32_t m_count
uint32_t m_size
uint32_t m_dirtyStart
uint32_t m_dirtyEnd
uint8_t m_data [1]

Detailed Description

This data structure is variable-sized through its last member whose size is determined at allocation time and stored in the m_size field.

The so-called "dirty area" describes the area in the buffer which has been reserved and used by a user. Multiple Buffer instances may reference the same BufferData object instance and may reference different parts of the underlying byte buffer. The "dirty area" is union of all the areas referenced by the Buffer instances which reference the same BufferData instance. New user data can be safely written only outside of the "dirty area" if the reference count is higher than 1 (that is, if more than one Buffer instance references the same BufferData).

Definition at line 56 of file buffer.cc.


Member Data Documentation


The documentation for this struct was generated from the following file:
Generated on Thu Dec 3 14:09:55 2009 for NS-3 by  doxygen 1.6.3