rlp::RlpDecoder¶
#include <rlp_decoder.hpp>
Public Functions¶
| Name | |
|---|---|
| RlpDecoder(ByteView data) | |
| bool | IsFinished() const |
| ByteView | Remaining() const |
| Result< bool > | IsList() const |
| Result< bool > | IsString() const |
| Result< size_t > | PeekPayloadSizeBytes() const |
| Result< Header > | PeekHeader() const |
| DecodingResult | read(Bytes & out) |
| DecodingResult | read(intx::uint256 & out) |
| template <typename T > std::enable_if_t< is_unsigned_integral_v< T > |
|
| Result< size_t > | ReadListHeaderBytes() |
| DecodingResult | SkipItem() |
| template <typename T > std::enable_if_t< is_unsigned_integral_v< T > |
|
| template <typename T > std::enable_if_t< is_unsigned_integral_v< T > |
|
| template <typename T > DecodingResult |
read_vector(std::vector< T > & vec) |
| template <size_t N> DecodingResult |
read(boost::span< uint8_t, N > out_span) |
| template <size_t N> DecodingResult |
read(std::array< uint8_t, N > & out_array) |
| template <size_t N> DecodingResult |
read(uint8_t(&) out_c_array[N]) |
| Result< ByteView > | PeekPayload() const |
| template <typename T > std::enable_if_t< is_rlp_decodable_v< T >, Result< T > > |
decode(ByteView & data, Leftover leftover =Leftover::kProhibit) |
Public Functions Documentation¶
function RlpDecoder¶
function IsFinished¶
function Remaining¶
function IsList¶
function IsString¶
function PeekPayloadSizeBytes¶
function PeekHeader¶
function read¶
function read¶
function read¶
template <typename T >
inline std::enable_if_t< is_unsigned_integral_v< T >||std::is_same_v< T, intx::uint256 >||std::is_same_v< T, bool >, DecodingResult > read(
T & out
)
function ReadListHeaderBytes¶
function SkipItem¶
function read¶
template <typename T >
inline std::enable_if_t< is_unsigned_integral_v< T >||std::is_same_v< T, bool >||std::is_same_v< T, intx::uint256 >, DecodingResult > read(
ByteView & data,
T & out,
Leftover leftover =Leftover::kProhibit
)
function check_payload¶
template <typename T >
inline std::enable_if_t< is_unsigned_integral_v< T >||std::is_same_v< T, bool >||std::is_same_v< T, intx::uint256 >, DecodingResult > check_payload(
Header & h,
ByteView & payload_view,
ByteView & view
)
function read_vector¶
function read¶
function read¶
function read¶
function PeekPayload¶
function decode¶
template <typename T >
static inline std::enable_if_t< is_rlp_decodable_v< T >, Result< T > > decode(
ByteView & data,
Leftover leftover =Leftover::kProhibit
)
Updated on 2026-04-13 at 23:22:46 -0700