BRefData Class Reference
#include <BRefData.h>
List of all members.
Detailed Description
Referenced data storage. This is Thread safe to a degree. The reference counting is protected. However, setLen() is not and should be protected at a higher level.
Constructor & Destructor Documentation
BRefData::BRefData |
( |
int |
len |
) |
|
BRefData::BRefData |
( |
const BRefData & |
refData |
) |
|
Member Function Documentation
Increment the reference counter.
Create a copy of this reference for writing, if necessary.
char* BRefData::data |
( |
|
) |
[inline] |
Return the raw data pointer.
int BRefData::deleteRef |
( |
|
) |
|
Decrement the reference counter.
int BRefData::len |
( |
|
) |
[inline] |
Return the length in bytes.
void BRefData::setLen |
( |
int |
len |
) |
|
Set the length in bytes. Note should only be used if orefCount = 1.
Member Data Documentation
The actual length of data in oData.
The reference count, how many users.
The documentation for this class was generated from the following files: