Kagome
Polkadot Runtime Engine in C++17
kagome::storage::trie::BufferStream Class Reference

#include <buffer_stream.hpp>

Collaboration diagram for kagome::storage::trie::BufferStream:

Public Member Functions

 BufferStream (gsl::span< const uint8_t > buf)
 
bool hasMore (index_type num_bytes) const
 
uint8_t next ()
 
gsl::span< const uint8_t > leftBytes () const
 

Private Types

using index_type = gsl::span< const uint8_t >::index_type
 

Private Attributes

gsl::span< const uint8_t > data_
 

Detailed Description

Needed for decoding, might be replaced to a more common stream in the future, when one appears

Definition at line 19 of file buffer_stream.hpp.

Member Typedef Documentation

using kagome::storage::trie::BufferStream::index_type = gsl::span<const uint8_t>::index_type
private

Definition at line 20 of file buffer_stream.hpp.

Constructor & Destructor Documentation

kagome::storage::trie::BufferStream::BufferStream ( gsl::span< const uint8_t >  buf)
inlineexplicit

Definition at line 23 of file buffer_stream.hpp.

Member Function Documentation

bool kagome::storage::trie::BufferStream::hasMore ( index_type  num_bytes) const
inline

Definition at line 25 of file buffer_stream.hpp.

gsl::span<const uint8_t> kagome::storage::trie::BufferStream::leftBytes ( ) const
inline

Definition at line 35 of file buffer_stream.hpp.

uint8_t kagome::storage::trie::BufferStream::next ( )
inline

Definition at line 29 of file buffer_stream.hpp.

Member Data Documentation

gsl::span<const uint8_t> kagome::storage::trie::BufferStream::data_
private

Definition at line 40 of file buffer_stream.hpp.


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