Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::read_limiter< Limit > Struct Template Reference
Collaboration diagram for sysio::chain::read_limiter< Limit >:

Public Types

using char_type = char
 
using category = bio::multichar_output_filter_tag
 

Public Member Functions

template<typename Sink >
size_t write (Sink &sink, const char *s, size_t count)
 

Public Attributes

size_t _total = 0
 

Detailed Description

template<size_t Limit>
struct sysio::chain::read_limiter< Limit >

Definition at line 176 of file transaction.cpp.

Member Typedef Documentation

◆ category

template<size_t Limit>
using sysio::chain::read_limiter< Limit >::category = bio::multichar_output_filter_tag

Definition at line 178 of file transaction.cpp.

◆ char_type

template<size_t Limit>
using sysio::chain::read_limiter< Limit >::char_type = char

Definition at line 177 of file transaction.cpp.

Member Function Documentation

◆ write()

template<size_t Limit>
template<typename Sink >
size_t sysio::chain::read_limiter< Limit >::write ( Sink & sink,
const char * s,
size_t count )
inline

Definition at line 181 of file transaction.cpp.

182 {
183 SYS_ASSERT(_total + count <= Limit, tx_decompression_error, "Exceeded maximum decompressed transaction size");
184 _total += count;
185 return bio::write(sink, s, count);
186 }
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
int * count
char * s

Member Data Documentation

◆ _total

template<size_t Limit>
size_t sysio::chain::read_limiter< Limit >::_total = 0

Definition at line 188 of file transaction.cpp.


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