#include <BRefData.h>
Public Member Functions | |
| BRefData () | |
| BRefData (int len) | |
| BRefData (const BRefData &refData) | |
| ~BRefData () | |
| BRefData * | copy () |
| Create a copy of this reference for writing, if necessary. | |
| BRefData * | addRef () |
| Increment the reference counter. | |
| int | deleteRef () |
| Decrement the reference counter. | |
| char * | data () |
| Return the raw data pointer. | |
| int | len () |
| Return the length in bytes. | |
| BRefData & | operator= (const BRefData &refData) |
| void | setLen (int len) |
| Set the length in bytes. Note should only be used if orefCount = 1. | |
Private Attributes | |
| BAtomicCount | orefCount |
| The reference count, how many users. | |
| int | olen |
| The actual length of data in oData. | |
| void * | odata |
| Pointer to the data. | |
| BRefData::BRefData | ( | ) |
| BRefData::BRefData | ( | int | len | ) |
| BRefData::BRefData | ( | const BRefData & | refData | ) |
| BRefData::~BRefData | ( | ) |
| BRefData * BRefData::addRef | ( | ) |
Increment the reference counter.
| BRefData * BRefData::copy | ( | ) |
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.
void* BRefData::odata [private] |
Pointer to the data.
int BRefData::olen [private] |
The actual length of data in oData.
BAtomicCount BRefData::orefCount [private] |
The reference count, how many users.
1.4.7