|
Uniswap Sniper Bot
1.0
|
Namespace holding all converters and other utilities. More...
Typedefs | |
| using | Byte = std::uint8_t |
| using | Buffer = Byte * |
Functions | |
| Byte | hexCharToByte (char x) |
| Converts hexadecimal char to byte. More... | |
| char | byteToHexChar (Byte x) |
| Converts byte to hexadecimal char. More... | |
| std::size_t | hexStringToBuffer (const char *input, std::size_t inputLength, Buffer output, bool stripZeroes=false) |
| Converts hexadecimal string to buffer. More... | |
| std::size_t | hexStringToBuffer (const char *input, Buffer output, bool stripZeroes=false) |
| Converts hexadecimal null-terminated string to buffer. More... | |
| std::size_t | bufferToHexString (Buffer input, std::size_t inputLength, char *output, bool nullTerminated=false) |
| Converts buffer to hexadecimal string. More... | |
| std::size_t | intToBuffer (std::uint64_t x, Buffer output) |
| Converts integer to buffer. More... | |
Namespace holding all converters and other utilities.
| using Utils::Byte = typedef std::uint8_t |
| using Utils::Buffer = typedef Byte* |
|
inline |
Converts hexadecimal char to byte.
| x | input hexadecimal char |
| std::invalid_argument | Throws when input is not valid hexadecimal char |
|
inline |
Converts byte to hexadecimal char.
| x | input byte |
| std::invalid_argument | Throws when input is not valid hexadecimal value |
|
inline |
Converts hexadecimal string to buffer.
| input | input hexadecimal c-string |
| inputLength | length of the input string |
| output | output buffer |
| stripZeroes | should input string be trimmed of leading zeroes |
|
inline |
Converts hexadecimal null-terminated string to buffer.
| input | input hexadecimal null-terminated c-string |
| output | output buffer |
| stripZeroes | should input string be trimmed of leading zeroes |
|
inline |
Converts buffer to hexadecimal string.
| input | input buffer |
| inputLength | length of the input buffer |
| output | output hexadecimal c-string, padded to even length |
| nullTerminated | should string be null terminated, defaults to false |
|
inline |
Converts integer to buffer.
| x | input integer |
| output | output buffer |