C++ edjLibrary SDK
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include <string>
5
6namespace edjx {
7
9namespace utils {
10
17 std::vector<uint8_t> to_bytes(const std::string & str);
18
25 std::string to_string(const std::vector<uint8_t> & vec);
26
27}}
std::vector< uint8_t > to_bytes(const std::string &str)
Convert a string to a vector of bytes.
std::string to_string(const std::vector< uint8_t > &vec)
Convert a vector of bytes to a string.
Definition: error.hpp:5