31 char*
data(){
return (
char*)odata; }
32 int len(){
return olen; }
BAtomicCount class.
Definition: BAtomicCount.h:50
A pointer to a variable sized data area with reference counting so the data areas can be shared.
Definition: BRefData.h:20
BRefData * copy()
Create a copy of this reference for writing, if necessary
Definition: BRefData.cpp:51
int deleteRef()
Decrement the reference counter.
Definition: BRefData.cpp:69
BRefData * addRef()
Increment the reference counter.
Definition: BRefData.cpp:64
char * data()
Return the raw data pointer.
Definition: BRefData.h:31
BRefData()
Definition: BRefData.cpp:15
int len()
Return the length in bytes.
Definition: BRefData.h:32
void setLen(int len)
Set the length in bytes. Note should only be used if orefCount = 1.
Definition: BRefData.cpp:73
~BRefData()
Definition: BRefData.cpp:44
BRefData & operator=(const BRefData &refData)
Definition: BRefData.cpp:35