|
Squid Web Cache v8/master
|
Public Member Functions | |
| Locker (SBuf *parent, const char *otherBuffer) | |
Private Attributes | |
| MemBlob::Pointer | locket |
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.
|
inline |
Definition at line 622 of file SBuf.h.
References MemBlob::capacity, RefCount< C >::getRaw(), locket, MemBlob::mem, and SBuf::store_.
|
private |