Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
test_utils.hpp
Go to the documentation of this file.
1uint32_t to_uint32(const std::string& s) {
2 size_t l = s.size();
3 return (uint32_t)std::stoul(s.c_str(), &l, 16);
4}
5
6bytes to_bytes(const std::string& source) {
7 BOOST_REQUIRE(!(source.length() % 2));
8 bytes output(source.length()/2);
9 fc::from_hex(source, output.data(), output.size());
10 return output;
11}
uint8_t from_hex(char c)
Definition hex.cpp:6
const CharType(& source)[N]
Definition pointer.h:1204
unsigned int uint32_t
Definition stdint.h:126
uint32_t to_uint32(const std::string &s)
Definition test_utils.hpp:1
bytes to_bytes(const std::string &source)
Definition test_utils.hpp:6
char * s
int l