Uniswap Sniper Bot  1.0
Classes | Functions
RLP Namespace Reference

Functions for Recursive Length Prefix Encoding. It is the main encoding method used to serialize objects in Ethereum. More...

Classes

struct  Item
 Struct holding single item data - its byte representation and length. More...
 

Functions

std::size_t encodeLength (std::size_t length, std::size_t offset, Buffer output)
 Encodes length. More...
 
std::size_t encodeItem (Item *input, Buffer output)
 Encodes single item. More...
 
std::size_t encodeList (Item input[], std::size_t inputLength, Buffer output)
 Encodes list of items. More...
 

Detailed Description

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

Function Documentation

◆ encodeLength()

std::size_t RLP::encodeLength ( std::size_t  length,
std::size_t  offset,
Buffer  output 
)
inline

Encodes length.

Parameters
lengthlength
offsetoffset
outputoutput buffer
Returns
output buffer length

◆ encodeItem()

std::size_t RLP::encodeItem ( Item input,
Buffer  output 
)
inline

Encodes single item.

Parameters
inputinput item
outputoutput 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
inputlist of input items
inputLengthlist length
outputoutput buffer
Returns
output buffer length