Uniswap Sniper Bot  1.0
Namespaces | Typedefs | Functions
utils.hpp File Reference
#include <cstdint>
#include <cstring>
#include <stdexcept>

Go to the source code of this file.

Namespaces

 Utils
 Namespace holding all converters and other utilities.
 

Typedefs

using Utils::Byte = std::uint8_t
 
using Utils::Buffer = Byte *
 

Functions

Byte Utils::hexCharToByte (char x)
 Converts hexadecimal char to byte. More...
 
char Utils::byteToHexChar (Byte x)
 Converts byte to hexadecimal char. More...
 
std::size_t Utils::hexStringToBuffer (const char *input, std::size_t inputLength, Buffer output, bool stripZeroes=false)
 Converts hexadecimal string to buffer. More...
 
std::size_t Utils::hexStringToBuffer (const char *input, Buffer output, bool stripZeroes=false)
 Converts hexadecimal null-terminated string to buffer. More...
 
std::size_t Utils::bufferToHexString (Buffer input, std::size_t inputLength, char *output, bool nullTerminated=false)
 Converts buffer to hexadecimal string. More...
 
std::size_t Utils::intToBuffer (std::uint64_t x, Buffer output)
 Converts integer to buffer. More...