#include <Stream.h>
Public Member Functions | |
SBufStream (const SBuf &aBuf) | |
SBufStream () | |
Create an empty SBufStream. More... | |
SBuf | buf () |
bytes written so far More... | |
SBufStream & | clearBuf () |
Clear the stream's backing store. More... | |
Private Attributes | |
SBuf | sink_ |
buffer for (flushed) bytes written to the stream More... | |
AppendingStreamBuf< SBuf > | streamBuffer_ |
writes raw (post-formatting) bytes to the sink_ More... | |
Detailed Description
Stream interface to write to a SBuf.
Data is appended using standard operator << semantics, and extracted using the buf() method, in analogy with std::strstream .
Constructor & Destructor Documentation
◆ SBufStream() [1/2]
|
inline |
Create a SBufStream preinitialized with the contents of a SBuf
The supplied SBuf copied: in order to retrieve the written-to contents they must be later fetched using the buf() class method.
Definition at line 28 of file Stream.h.
References streamBuffer_.
◆ SBufStream() [2/2]
Member Function Documentation
◆ buf()
|
inline |
Definition at line 41 of file Stream.h.
References sink_.
Referenced by Format::Format::assemble(), Security::ErrorDetail::brief(), ConfigurationFailureMessage(), ACLRegexData::dump(), ACLAnnotationData::dump(), ErrorState::Dump(), dump_cache_log_message(), DumpDirective(), ProxyProtocol::Header::getValues(), Store::PackSwapMeta(), Rock::Rebuild::progressDescription(), Security::KeyLog::record(), HappyConnOpener::status(), TestSBuf::testSBufStream(), ProxyProtocol::Header::toMime(), ToSBuf(), and Security::ErrorDetail::verbose().
◆ clearBuf()
|
inline |
Definition at line 47 of file Stream.h.
References SBuf::clear(), and sink_.
Referenced by TestSBuf::testSBufStream().
Member Data Documentation
◆ sink_
|
private |
Definition at line 55 of file Stream.h.
Referenced by buf(), and clearBuf().
◆ streamBuffer_
|
private |
Definition at line 57 of file Stream.h.
Referenced by SBufStream().
The documentation for this class was generated from the following file:
- src/sbuf/Stream.h
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products