Functions for Recursive Length Prefix Encoding. It is the main encoding method used to serialize objects in Ethereum.
More...
|
struct | Item |
| Struct holding single item data - its byte representation and length. More...
|
|
Functions for Recursive Length Prefix Encoding. It is the main encoding method used to serialize objects in Ethereum.
- See also
- https://eth.wiki/fundamentals/rlp
◆ encodeLength()
std::size_t RLP::encodeLength |
( |
std::size_t |
length, |
|
|
std::size_t |
offset, |
|
|
Buffer |
output |
|
) |
| |
|
inline |
Encodes length.
- Parameters
-
length | length |
offset | offset |
output | output buffer |
- Returns
- output buffer length
◆ encodeItem()
std::size_t RLP::encodeItem |
( |
Item * |
input, |
|
|
Buffer |
output |
|
) |
| |
|
inline |
Encodes single item.
- Parameters
-
input | input item |
output | output buffer |
- Returns
- output buffer length
◆ encodeList()
std::size_t RLP::encodeList |
( |
Item |
input[], |
|
|
std::size_t |
inputLength, |
|
|
Buffer |
output |
|
) |
| |
|
inline |
Encodes list of items.
- Parameters
-
input | list of input items |
inputLength | list length |
output | output buffer |
- Returns
- output buffer length