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.

Definition at line 604 of file SBuf.h.

Constructor & Destructor Documentation

◆ Locker()

SBuf::Locker::Locker ( SBuf parent,
const char *  otherBuffer 
)
inline

Definition at line 607 of file SBuf.h.

References MemBlob::capacity, RefCount< C >::getRaw(), MemBlob::mem, and SBuf::store_.

Member Data Documentation

◆ locket

MemBlob::Pointer SBuf::Locker::locket
private

Definition at line 614 of file SBuf.h.


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors