File bytes.cpp

namespace faabric
namespace util

Functions

std::vector<uint8_t> stringToBytes(const std::string &str)
int bytesToInt(const std::vector<uint8_t> &bytes)
std::string bytesToString(const std::vector<uint8_t> &bytes)
std::string formatByteArrayToIntString(const std::vector<uint8_t> &bytes)
void trimTrailingZeros(std::vector<uint8_t> &vectorIn)
int safeCopyToBuffer(const std::vector<uint8_t> &dataIn, uint8_t *buffer, int bufferLen)
int safeCopyToBuffer(const uint8_t *dataIn, int dataLen, uint8_t *buffer, int bufferLen)
std::string byteArrayToHexString(const uint8_t *data, int dataSize)
std::vector<uint8_t> hexStringToByteArray(const std::string &hexString)