Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
SizeComputer Class Reference

#include <serialize.h>

Public Member Functions

 SizeComputer ()=default
void write (std::span< const std::byte > src)
void seek (uint64_t num)
 Pretend this many bytes are written, without specifying them.
template<typename T>
SizeComputeroperator<< (const T &obj)
uint64_t size () const

Protected Attributes

uint64_t m_size {0}

Detailed Description

Definition at line 1051 of file serialize.h.

Constructor & Destructor Documentation

◆ SizeComputer()

SizeComputer::SizeComputer ( )
default
Here is the caller graph for this function:

Member Function Documentation

◆ operator<<()

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

Definition at line 1071 of file serialize.h.

Here is the call graph for this function:

◆ seek()

void SizeComputer::seek ( uint64_t num)
inline

Pretend this many bytes are written, without specifying them.

Definition at line 1065 of file serialize.h.

◆ size()

uint64_t SizeComputer::size ( ) const
inline

Definition at line 1077 of file serialize.h.

Here is the caller graph for this function:

◆ write()

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

Definition at line 1059 of file serialize.h.

Member Data Documentation

◆ m_size

uint64_t SizeComputer::m_size {0}
protected

Definition at line 1054 of file serialize.h.


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