Project
Loading...
Searching...
No Matches
HashStreamBuf Class Reference

#include <HashStreamBuf.h>

Inherits std::streambuf.

Public Member Functions

 HashStreamBuf ()=default
 
 HashStreamBuf (bool doHash, std::streambuf *backing=nullptr)
 
std::string hash () const
 

Protected Member Functions

std::streamsize xsputn (const char *data, std::streamsize size) override
 
int_type overflow (int_type ch) override
 
int sync () override
 

Detailed Description

Definition at line 23 of file HashStreamBuf.h.

Constructor & Destructor Documentation

◆ HashStreamBuf() [1/2]

HashStreamBuf::HashStreamBuf ( )
default

◆ HashStreamBuf() [2/2]

HashStreamBuf::HashStreamBuf ( bool  doHash,
std::streambuf *  backing = nullptr 
)
inline

Definition at line 28 of file HashStreamBuf.h.

Member Function Documentation

◆ hash()

std::string HashStreamBuf::hash ( ) const
inline

Definition at line 37 of file HashStreamBuf.h.

◆ overflow()

int_type HashStreamBuf::overflow ( int_type  ch)
inlineoverrideprotected

Definition at line 73 of file HashStreamBuf.h.

◆ sync()

int HashStreamBuf::sync ( )
inlineoverrideprotected

Definition at line 94 of file HashStreamBuf.h.

◆ xsputn()

std::streamsize HashStreamBuf::xsputn ( const char *  data,
std::streamsize  size 
)
inlineoverrideprotected

Definition at line 56 of file HashStreamBuf.h.


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