Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Protected Attributes | List of all members
SizeComputer Class Reference

#include <serialize.h>

Public Member Functions

 SizeComputer ()
 
void write (Span< const std::byte > src)
 
void seek (size_t _nSize)
 Pretend _nSize bytes are written, without specifying them. More...
 
template<typename T >
SizeComputeroperator<< (const T &obj)
 
size_t size () const
 

Protected Attributes

size_t nSize {0}
 

Detailed Description

Definition at line 1073 of file serialize.h.

Constructor & Destructor Documentation

◆ SizeComputer()

SizeComputer::SizeComputer ( )
inline

Definition at line 1079 of file serialize.h.

Member Function Documentation

◆ operator<<()

template<typename T >
SizeComputer& SizeComputer::operator<< ( const T obj)
inline

Definition at line 1093 of file serialize.h.

Here is the call graph for this function:

◆ seek()

void SizeComputer::seek ( size_t  _nSize)
inline

Pretend _nSize bytes are written, without specifying them.

Definition at line 1087 of file serialize.h.

Here is the caller graph for this function:

◆ size()

size_t SizeComputer::size ( ) const
inline

Definition at line 1099 of file serialize.h.

Here is the caller graph for this function:

◆ write()

void SizeComputer::write ( Span< const std::byte >  src)
inline

Definition at line 1081 of file serialize.h.

Here is the call graph for this function:

Member Data Documentation

◆ nSize

size_t SizeComputer::nSize {0}
protected

Definition at line 1076 of file serialize.h.


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