Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
toolbox::http::StreamBuf Class Referencefinal

#include <toolbox/http/Stream.hpp>

Inheritance diagram for toolbox::http::StreamBuf:
Inheritance graph
[legend]
Collaboration diagram for toolbox::http::StreamBuf:
Collaboration graph
[legend]

Public Member Functions

 StreamBuf (Buffer &buf) noexcept
 
 ~StreamBuf () override
 
 StreamBuf (const StreamBuf &)=delete
 
StreamBufoperator= (const StreamBuf &)=delete
 
 StreamBuf (StreamBuf &&)=delete
 
StreamBufoperator= (StreamBuf &&)=delete
 
std::streamsize pcount () const noexcept
 
void commit () noexcept
 
void reset () noexcept
 
void set_content_length (std::streamsize pos, std::streamsize len) noexcept
 

Protected Member Functions

int_type overflow (int_type c) noexcept override
 
std::streamsize xsputn (const char_type *s, std::streamsize count) noexcept override
 

Detailed Description

Definition at line 31 of file Stream.hpp.

Constructor & Destructor Documentation

◆ StreamBuf() [1/3]

toolbox::http::StreamBuf::StreamBuf ( Buffer buf)
inlineexplicitnoexcept

Definition at line 33 of file Stream.hpp.

◆ ~StreamBuf()

toolbox::http::StreamBuf::~StreamBuf ( )
overridedefault

◆ StreamBuf() [2/3]

toolbox::http::StreamBuf::StreamBuf ( const StreamBuf )
delete

◆ StreamBuf() [3/3]

toolbox::http::StreamBuf::StreamBuf ( StreamBuf &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

StreamBuf & toolbox::http::StreamBuf::operator= ( const StreamBuf )
delete

◆ operator=() [2/2]

StreamBuf & toolbox::http::StreamBuf::operator= ( StreamBuf &&  )
delete

◆ pcount()

std::streamsize toolbox::http::StreamBuf::pcount ( ) const
inlinenoexcept

Definition at line 47 of file Stream.hpp.

Referenced by toolbox::http::OStream::commit(), and toolbox::http::OStream::reset().

◆ commit()

void toolbox::http::StreamBuf::commit ( )
inlinenoexcept

Definition at line 48 of file Stream.hpp.

Referenced by toolbox::http::OStream::commit().

◆ reset()

void toolbox::http::StreamBuf::reset ( )
inlinenoexcept

Definition at line 49 of file Stream.hpp.

Referenced by toolbox::http::OStream::reset().

◆ set_content_length()

void toolbox::http::StreamBuf::set_content_length ( std::streamsize  pos,
std::streamsize  len 
)
noexcept

Definition at line 23 of file Stream.cpp.

Referenced by toolbox::http::OStream::commit().

◆ overflow()

StreamBuf::int_type toolbox::http::StreamBuf::overflow ( int_type  c)
overrideprotectednoexcept

Definition at line 35 of file Stream.cpp.

◆ xsputn()

std::streamsize toolbox::http::StreamBuf::xsputn ( const char_type s,
std::streamsize  count 
)
overrideprotectednoexcept

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