|
Kagome
Polkadot Runtime Engine in C++17
|
#include <digest.hpp>
Additional Inherited Members | |
Public Types inherited from kagome::common::SLBuffer< MaxSize > | |
| using | Base = SLVector< uint8_t, MaxSize > |
| template<size_t OtherMaxSize> | |
| using | OtherSLBuffer = SLBuffer< OtherMaxSize > |
| using | Base = BaseContainer |
Public Member Functions inherited from kagome::common::SLBuffer< MaxSize > | |
| SLBuffer ()=default | |
| SLBuffer (const typename Base::Base &other) | |
| lvalue construct buffer from a byte vector More... | |
| SLBuffer (typename Base::Base &&other) | |
| template<size_t OtherMaxSize> | |
| SLBuffer (const OtherSLBuffer< OtherMaxSize > &other) | |
| template<size_t OtherMaxSize> | |
| SLBuffer (OtherSLBuffer< OtherMaxSize > &&other) | |
| SLBuffer (const BufferView &s) | |
| template<size_t N> | |
| SLBuffer (const std::array< typename Base::value_type, N > &other) | |
| SLBuffer (const uint8_t *begin, const uint8_t *end) | |
| SLBuffer & | reserve (size_t size) |
| SLBuffer & | resize (size_t size) |
| SLBuffer & | operator+= (const BufferView &view) noexcept |
| SLBuffer & | putUint8 (uint8_t n) |
| Put a 8-bit {. More... | |
| SLBuffer & | putUint32 (uint32_t n) |
| Put a 32-bit {. More... | |
| SLBuffer & | putUint64 (uint64_t n) |
| Put a 64-bit {. More... | |
| SLBuffer & | put (std::string_view view) |
| Put a string into byte buffer. More... | |
| SLBuffer & | put (const BufferView &view) |
| Put a sequence of bytes as view into byte buffer. More... | |
| const std::vector< uint8_t > & | asVector () const |
| getter for vector of bytes More... | |
| std::vector< uint8_t > & | asVector () |
| std::vector< uint8_t > | toVector ()& |
| std::vector< uint8_t > | toVector ()&& |
| SLBuffer | subbuffer (size_t offset=0, size_t length=-1) const |
| BufferView | view (size_t offset=0, size_t length=-1) const |
| std::string | toHex () const |
| encode bytearray as hex More... | |
| std::string | toString () const |
| return content of bytearray as string More... | |
| std::string_view | asString () const |
| return content of bytearray as a string copy data More... | |
| bool | operator== (const BufferView &other) const noexcept |
| template<size_t N> | |
| bool | operator== (const std::array< typename Base::value_type, N > &other) const noexcept |
| bool | operator< (const BufferView &other) const noexcept |
| template<size_t N> | |
| bool | operator< (const std::array< typename Base::value_type, N > &other) const noexcept |
Public Member Functions inherited from kagome::common::SizeLimitedContainer< BaseContainer, MaxSize > | |
| constexpr Base::size_type | max_size () |
| SizeLimitedContainer ()=default | |
| SizeLimitedContainer (size_t size) | |
| SizeLimitedContainer (size_t size, const typename Base::value_type &value) | |
| SizeLimitedContainer (const Base &other) | |
| SizeLimitedContainer (Base &&other) | |
| template<typename Iter , typename = std::enable_if_t<std::is_base_of_v< std::input_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>>> | |
| SizeLimitedContainer (Iter begin, Iter end) | |
| SizeLimitedContainer (std::initializer_list< typename Base::value_type > list) | |
| SizeLimitedContainer & | operator= (const Base &other) |
| SizeLimitedContainer & | operator= (Base &&other) |
| SizeLimitedContainer & | operator= (std::initializer_list< typename Base::value_type > list) |
| void | assign (typename Base::size_type size, const typename Base::value_type &value) |
| template<typename Iter , typename = std::enable_if_t<std::is_base_of_v< std::input_iterator_tag, typename std::iterator_traits<Iter>::iterator_category>>> | |
| void | assign (Iter begin, Iter end) |
| void | assign (std::initializer_list< typename Base::value_type > list) |
| template<typename... Args> | |
| Base::reference & | emplace_back (Args &&...args) |
| template<typename Iter , typename... Args, bool isIter = std::is_same_v<Iter, typename Base::iterator>, bool isConstIter = std::is_same_v<Iter, typename Base::const_iterator>, typename = std::enable_if_t<isIter or isConstIter>> | |
| Base::iterator | emplace (Iter pos, Args &&...args) |
| template<typename Iter , bool isIter = std::is_same_v<Iter, typename Base::iterator>, bool isConstIter = std::is_same_v<Iter, typename Base::const_iterator>, typename = std::enable_if_t<isIter or isConstIter>> | |
| Base::iterator | insert (Iter pos, const typename Base::value_type &value) |
| template<typename Iter , bool isIter = std::is_same_v<Iter, typename Base::iterator>, bool isConstIter = std::is_same_v<Iter, typename Base::const_iterator>, typename = std::enable_if_t<isIter or isConstIter>> | |
| Base::iterator | insert (Iter pos, typename Base::size_type size, const typename Base::value_type &value) |
| template<typename OutIt , typename InIt , bool isIter = std::is_same_v<OutIt, typename Base::iterator>, bool isConstIter = std::is_same_v<OutIt, typename Base::const_iterator>, typename = std::enable_if_t<isIter or isConstIter>, typename = std::enable_if_t<std::is_base_of_v< std::input_iterator_tag, typename std::iterator_traits<InIt>::iterator_category>>> | |
| Base::iterator | insert (OutIt pos, InIt begin, InIt end) |
| template<typename Iter , bool isIter = std::is_same_v<Iter, typename Base::iterator>, bool isConstIter = std::is_same_v<Iter, typename Base::const_iterator>, typename = std::enable_if_t<isIter or isConstIter>> | |
| Base::iterator | insert (Iter pos, std::initializer_list< typename Base::value_type > &&list) |
| template<typename V > | |
| void | push_back (V &&value) |
| void | reserve (typename Base::size_type size) |
| void | resize (typename Base::size_type size) |
| void | resize (typename Base::size_type size, const typename Base::value_type &value) |
| bool | operator== (const Base &other) const noexcept |
| bool | operator== (const Span &other) const noexcept |
| bool | operator!= (const Base &other) const noexcept |
| bool | operator!= (const Span &other) const noexcept |
| bool | operator< (const Base &other) const noexcept |
| bool | operator< (const Span &other) const noexcept |
Static Public Member Functions inherited from kagome::common::SLBuffer< MaxSize > | |
| static outcome::result< SLBuffer > | fromHex (std::string_view hex) |
| Construct SLBuffer from hex string. More... | |
| static SLBuffer | fromString (const std::string_view &src) |
| stores content of a string to byte array More... | |
Static Public Attributes inherited from kagome::common::SizeLimitedContainer< BaseContainer, MaxSize > | |
| static constexpr bool | is_static_collection = false |
Protected Types inherited from kagome::common::SizeLimitedContainer< BaseContainer, MaxSize > | |
| using | Base = BaseContainer |
| using | Span = gsl::span< typename Base::value_type > |
Static Protected Attributes inherited from kagome::common::SizeLimitedContainer< BaseContainer, MaxSize > | |
| static constexpr bool | size_check_is_enabled |
Definition at line 37 of file digest.hpp.