SBuf::Locker Class Reference
Collaboration diagram for SBuf::Locker:
Public Member Functions
|Locker (SBuf *parent, const char *otherBuffer)|
Keeps SBuf's MemBlob alive in a blob-destroying context where a seemingly unrelated memory pointer may belong to the same blob. For [an extreme] example, consider: a.append(a). Compared to an SBuf temporary, this class is optimized to preserve blobs only if needed and to reduce debugging noise.
Constructor & Destructor Documentation
Definition at line 618 of file SBuf.h.
References MemBlob::capacity, RefCount< C >::getRaw(), locket, MemBlob::mem, and SBuf::store_.
Member Data Documentation
The documentation for this class was generated from the following file: