Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | List of all members
UncopyableStream Class Reference
Inheritance diagram for UncopyableStream:
[legend]
Collaboration diagram for UncopyableStream:
[legend]

Public Member Functions

 UncopyableStream (const UncopyableStream &)=delete
 
UncopyableStreamoperator= (const UncopyableStream &)=delete
 
 UncopyableStream (UncopyableStream &&) noexcept=default
 
UncopyableStreamoperator= (UncopyableStream &&) noexcept=default
 
 DataStream ()=default
 
 DataStream (Span< const uint8_t > sp)
 
 DataStream (Span< const value_type > sp)
 
- Public Member Functions inherited from DataStream
 DataStream ()=default
 
 DataStream (Span< const uint8_t > sp)
 
 DataStream (Span< const value_type > sp)
 
std::string str () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
size_type size () const
 
bool empty () const
 
void resize (size_type n, value_type c=value_type{})
 
void reserve (size_type n)
 
const_reference operator[] (size_type pos) const
 
reference operator[] (size_type pos)
 
void clear ()
 
value_typedata ()
 
const value_typedata () const
 
void Compact ()
 
bool Rewind (std::optional< size_type > n=std::nullopt)
 
bool eof () const
 
int in_avail () const
 
void read (Span< value_type > dst)
 
void ignore (size_t num_ignore)
 
void write (Span< const value_type > src)
 
template<typename T >
DataStreamoperator<< (const T &obj)
 
template<typename T >
DataStreamoperator>> (T &&obj)
 
void Xor (const std::vector< unsigned char > &key)
 XOR the contents of this stream with a certain key. More...
 
size_t GetMemoryUsage () const noexcept
 Compute total memory usage of this object (own memory + any dynamic memory). More...
 

Additional Inherited Members

- Public Types inherited from DataStream
typedef vector_type::allocator_type allocator_type
 
typedef vector_type::size_type size_type
 
typedef vector_type::difference_type difference_type
 
typedef vector_type::reference reference
 
typedef vector_type::const_reference const_reference
 
typedef vector_type::value_type value_type
 
typedef vector_type::iterator iterator
 
typedef vector_type::const_iterator const_iterator
 
typedef vector_type::reverse_iterator reverse_iterator
 
- Protected Types inherited from DataStream
using vector_type = SerializeData
 
- Protected Attributes inherited from DataStream
vector_type vch
 
vector_type::size_type m_read_pos {0}
 

Detailed Description

Definition at line 20 of file serialize_tests.cpp.

Constructor & Destructor Documentation

◆ UncopyableStream() [1/2]

UncopyableStream::UncopyableStream ( const UncopyableStream )
delete

◆ UncopyableStream() [2/2]

UncopyableStream::UncopyableStream ( UncopyableStream &&  )
defaultnoexcept

Member Function Documentation

◆ DataStream() [1/3]

DataStream::DataStream ( )
explicitdefault

◆ DataStream() [2/3]

DataStream::DataStream ( Span< const uint8_t >  sp)
inlineexplicit

Definition at line 165 of file streams.h.

◆ DataStream() [3/3]

DataStream::DataStream ( Span< const value_type sp)
inlineexplicit

Definition at line 166 of file streams.h.

◆ operator=() [1/2]

UncopyableStream & UncopyableStream::operator= ( const UncopyableStream )
delete

◆ operator=() [2/2]

UncopyableStream & UncopyableStream::operator= ( UncopyableStream &&  )
defaultnoexcept

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