nn::nex::RefBuffer Class

Syntax

class RefBuffer : public nn::nex::RootObject

Description

Manages buffer references.

Has a pointer to a buffer, which is shared among RefBuffer objects. When copying betweenRefBuffer objects, the reference counter for the buffer is incremented. The buffers themselves are not copied.
The destructor for RefBuffer decrements the reference counter for the buffer. Using the RefBuffer class makes buffer reference counter operations unnecessary.

Member Functions

RefBuffer Constructor.
~RefBuffer Destructor.
Get Gets a pointer to the buffer maintained in RefBuffer.
GetSize Gets the size of the buffer maintained in RefBuffer.
operator= Shares the RefBuffer object and buffer to assign. Increments the buffer reference counter.
operator[] Accesses the specified byte in the buffer maintained in RefBuffer.

Class Hierarchy

nn::nex::RootObject
  nn::nex::RefBuffer

Revision History

2012/04/10
Initial version.

CONFIDENTIAL