rlp¶
Namespaces¶
| Name |
|---|
| rlp::base |
| rlp::endian |
Classes¶
| Name | |
|---|---|
| struct | rlp::Header |
| struct | rlp::is_rlp_decodable |
| struct | rlp::is_rlp_encodable |
| class | rlp::RlpChunkedListDecoder |
| class | rlp::RlpChunkedListEncoder |
| class | rlp::RlpDecoder |
| class | rlp::RlpEncoder |
| class | rlp::RlpLargeStringDecoder |
| class | rlp::RlpLargeStringEncoder |
Types¶
| Name | |
|---|---|
| enum class | Leftover |
| enum class | EncodingError |
| enum class | DecodingError |
| enum class | StreamingError |
| template <class T > using outcome::result< T, EncodingError, outcome::policy::all_narrow > |
EncodingResult |
| using outcome::result< void, EncodingError, outcome::policy::all_narrow > | EncodingOperationResult |
| template <class T > using outcome::result< T, DecodingError, outcome::policy::all_narrow > |
Result |
| using outcome::result< void, DecodingError, outcome::policy::all_narrow > | DecodingResult |
| template <class T > using outcome::result< T, StreamingError, outcome::policy::all_narrow > |
StreamingResult |
| using outcome::result< void, StreamingError, outcome::policy::all_narrow > | StreamingOperationResult |
| using std::array< uint8_t, 20 > | Address |
| using std::array< uint8_t, 32 > | Hash256 |
| using std::array< uint8_t, 65 > | Signature |
| using std::array< uint8_t, 256 > | Bloom |
| using std::basic_string< uint8_t > | Bytes |
| using std::basic_string_view< uint8_t > | ByteView |
Functions¶
Attributes¶
| Name | |
|---|---|
| constexpr uint8_t | kEmptyStringCode |
| constexpr uint8_t | kEmptyListCode |
| constexpr uint8_t | kMaxShortStringLen |
| constexpr uint8_t | kMaxShortListLen |
| constexpr uint8_t | kShortStringOffset |
| constexpr uint8_t | kLongStringOffset |
| constexpr uint8_t | kShortListOffset |
| constexpr uint8_t | kLongListOffset |
| constexpr uint8_t | kRlpSingleByteThreshold |
| constexpr size_t | kLongPrefixByteSize Size of the single prefix byte prepended before the big-endian length field in long strings/lists. |
| constexpr size_t | kSingleByteStringSize Minimum encoded size of a single-byte RLP string (prefix byte + payload byte). |
| constexpr bool | is_unsigned_integral_v |
| constexpr bool | is_rlp_encodable_v |
| constexpr bool | is_rlp_decodable_v |
Types Documentation¶
enum Leftover¶
| Enumerator | Value | Description |
|---|---|---|
| kProhibit | ||
| kAllow |
enum EncodingError¶
| Enumerator | Value | Description |
|---|---|---|
| kPayloadTooLarge | ||
| kEmptyInput | ||
| kUnclosedList | ||
| kUnmatchedEndList |
enum DecodingError¶
| Enumerator | Value | Description |
|---|---|---|
| kOverflow | ||
| kLeadingZero | ||
| kInputTooShort | ||
| kInputTooLong | ||
| kNonCanonicalSize | ||
| kUnexpectedList | ||
| kUnexpectedString | ||
| kUnexpectedLength | ||
| kUnexpectedListElements | ||
| kInvalidVrsValue | ||
| kListLengthMismatch | ||
| kNotInList | ||
| kMalformedHeader | ||
| kAlreadyFinalized | ||
| kNotFinalized | ||
| kInvalidChunkSize | ||
| kHeaderSizeExceeded |
enum StreamingError¶
| Enumerator | Value | Description |
|---|---|---|
| kAlreadyFinalized | ||
| kNotFinalized | ||
| kInvalidChunkSize | ||
| kHeaderSizeExceeded |
using EncodingResult¶
template <class T >
using rlp::EncodingResult = typedef outcome::result<T, EncodingError, outcome::policy::all_narrow>;
using EncodingOperationResult¶
using rlp::EncodingOperationResult = typedef outcome::result<void, EncodingError, outcome::policy::all_narrow>;
using Result¶
template <class T >
using rlp::Result = typedef outcome::result<T, DecodingError, outcome::policy::all_narrow>;
using DecodingResult¶
using rlp::DecodingResult = typedef outcome::result<void, DecodingError, outcome::policy::all_narrow>;
using StreamingResult¶
template <class T >
using rlp::StreamingResult = typedef outcome::result<T, StreamingError, outcome::policy::all_narrow>;
using StreamingOperationResult¶
using rlp::StreamingOperationResult = typedef outcome::result<void, StreamingError, outcome::policy::all_narrow>;
using Address¶
using Hash256¶
using Signature¶
using Bloom¶
using Bytes¶
using ByteView¶
Functions Documentation¶
function encoding_error_to_string¶
function decoding_error_to_string¶
function streaming_error_to_string¶
function hexToString¶
function addAddress¶
function addHash¶
function addSignature¶
function addBloom¶
function readAddress¶
function readHash¶
function readSignature¶
function readBloom¶
function encodeLargeString¶
template <typename Func >
inline StreamingOperationResult encodeLargeString(
RlpEncoder & encoder,
Func && generator
)
function encodeChunkedList¶
template <typename Func >
inline StreamingOperationResult encodeChunkedList(
RlpEncoder & encoder,
Func && generator,
size_t chunk_size =32768
)
function decodeLargeString¶
template <typename Func >
inline DecodingResult decodeLargeString(
RlpDecoder & decoder,
Func && callback,
size_t read_chunk_size =32768
)
function decodeChunkedList¶
template <typename Func >
inline DecodingResult decodeChunkedList(
RlpDecoder & decoder,
Func && callback
)
function decodeChunkedListFull¶
Attributes Documentation¶
variable kEmptyStringCode¶
variable kEmptyListCode¶
variable kMaxShortStringLen¶
variable kMaxShortListLen¶
variable kShortStringOffset¶
variable kLongStringOffset¶
variable kShortListOffset¶
variable kLongListOffset¶
variable kRlpSingleByteThreshold¶
variable kLongPrefixByteSize¶
Size of the single prefix byte prepended before the big-endian length field in long strings/lists.
variable kSingleByteStringSize¶
Minimum encoded size of a single-byte RLP string (prefix byte + payload byte).
variable is_unsigned_integral_v¶
constexpr bool is_unsigned_integral_v = std::is_integral_v<T> && std::is_unsigned_v<T> && !std::is_same_v<T, bool>;
variable is_rlp_encodable_v¶
variable is_rlp_decodable_v¶
Updated on 2026-08-06 at 13:59:18 +0000