25 char*
data(){
return (
char*)odata; }
26 int len(){
return olen; }
BRefData * copy()
Create a copy of this reference for writing, if necessary.
Definition: BRefData.cpp:49
Definition: BRefData.h:14
int len()
Return the length in bytes.
Definition: BRefData.h:26
~BRefData()
Definition: BRefData.cpp:42
BRefData()
Definition: BRefData.cpp:13
int deleteRef()
Decrement the reference counter.
Definition: BRefData.cpp:67
BAtomicCount class.
Definition: BAtomicCount.h:48
void setLen(int len)
Set the length in bytes. Note should only be used if orefCount = 1.
Definition: BRefData.cpp:71
char * data()
Return the raw data pointer.
Definition: BRefData.h:25
BRefData * addRef()
Increment the reference counter.
Definition: BRefData.cpp:62
BRefData & operator=(const BRefData &refData)
Definition: BRefData.cpp:33