SBuf::Locker Class Reference
Collaboration diagram for SBuf::Locker:
Public Member Functions | |
Locker (SBuf *parent, const char *otherBuffer) | |
Private Attributes | |
MemBlob::Pointer | locket |
Detailed Description
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
◆ Locker()
|
inline |
Definition at line 618 of file SBuf.h.
References MemBlob::capacity, RefCount< C >::getRaw(), locket, MemBlob::mem, and SBuf::store_.
Member Data Documentation
◆ locket
|
private |
The documentation for this class was generated from the following file:
- src/sbuf/SBuf.h