rlp¶
Namespaces¶
| Name |
|---|
| rlp::base |
| rlp::endian |
Classes¶
| Name | |
|---|---|
| struct | rlp::Header |
| class | rlp::RlpDecoder |
| class | rlp::RlpEncoder |
| class | rlp::RlpLargeStringEncoder |
| class | rlp::RlpChunkedListEncoder |
| class | rlp::RlpLargeStringDecoder |
| class | rlp::RlpChunkedListDecoder |
| struct | rlp::is_rlp_encodable |
| struct | rlp::is_rlp_decodable |
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 | |
|---|---|
| uint8_t | kEmptyStringCode |
| uint8_t | kEmptyListCode |
| uint8_t | kMaxShortStringLen |
| uint8_t | kMaxShortListLen |
| uint8_t | kShortStringOffset |
| uint8_t | kLongStringOffset |
| uint8_t | kShortListOffset |
| uint8_t | kLongListOffset |
| uint8_t | kRlpSingleByteThreshold |
| size_t | kLongPrefixByteSize Size of the single prefix byte prepended before the big-endian length field in long strings/lists. |
| size_t | kSingleByteStringSize Minimum encoded size of a single-byte RLP string (prefix byte + payload byte). |
| bool | is_unsigned_integral_v |
| bool | is_rlp_encodable_v |
| 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 = outcome::result<T, EncodingError, outcome::policy::all_narrow>;
using EncodingOperationResult¶
using rlp::EncodingOperationResult = outcome::result<void, EncodingError, outcome::policy::all_narrow>;
using Result¶
template <class T >
using rlp::Result = outcome::result<T, DecodingError, outcome::policy::all_narrow>;
using DecodingResult¶
using StreamingResult¶
template <class T >
using rlp::StreamingResult = outcome::result<T, StreamingError, outcome::policy::all_narrow>;
using StreamingOperationResult¶
using rlp::StreamingOperationResult = 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¶
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-04-13 at 23:22:46 -0700