#include <oofStruct.h>
Inheritance diagram for oofSharedBLOB:
[legend]Collaboration diagram for oofSharedBLOB:
[legend]List of all members.
Detailed Description
Store a shared chunk of binary info with reference count to avoid copying.
Implements mDirty flag to mark for updates. Implements mLoaded flag to use when subclassing or in a context where want to differentiate between not being loaded and having loaded a zero-size BLOB. Use as a pointer member, copying the pointer and calling incRefs or decRefs each time you copy the pointer or destruct the oofSharedBLOB.
- Todo:
- write oofSharedCOWBLOB providing quick duplication for COW. (Copy-On-Write).
Constructor & Destructor Documentation
| oofSharedBLOB::oofSharedBLOB |
( |
|
) |
|
|
Member Function Documentation
| void oofSharedBLOB::adoptBody |
( |
char * |
body, |
|
|
unsigned long |
bodyLen |
|
) |
|
|
| char * oofSharedBLOB::allocRoomFor |
( |
unsigned |
long |
) |
|
|
| char * oofSharedBLOB::bodyAddress |
( |
|
) |
const [inline] |
|
| unsigned long oofSharedBLOB::bodyLength |
( |
|
) |
const [inline] |
|
| void OOF_mixRefCount::decRefs |
( |
|
) |
[inherited] |
|
| void OOF_mixRefCount::incRefs |
( |
|
) |
[inline, inherited] |
|
| bool oofSharedBLOB::isDirty |
( |
|
) |
const [inline] |
|
| bool oofSharedBLOB::isLoaded |
( |
|
) |
const [inline] |
|
| void oofSharedBLOB::markDirty |
( |
|
) |
[inline] |
|
| char * oofSharedBLOB::orphanBody |
( |
|
) |
|
|
| void oofSharedBLOB::reset |
( |
|
) |
[inline] |
|
| void oofSharedBLOB::setBytes |
( |
const char * |
buf, |
|
|
unsigned long |
bufLen |
|
) |
|
|
| void oofSharedBLOB::setLen |
( |
unsigned long |
newLen |
) |
|
|
|
|
Truncate length.
Asserts if incoming length too long. |
Member Data Documentation
The documentation for this class was generated from the following files:
Generated on Fri Jan 2 01:27:41 2004 for OOFILE by
1.3.5