MCPcopy Create free account
hub / github.com/bcndev/bytecoin / from_binary_key

Method from_binary_key

src/platform/DBsqlite3.hpp:104–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 return result;
103 }
104 static void from_binary_key(const std::string &str, size_t pos, unsigned char *data, size_t size) {
105 auto si = std::min(str.size() - pos, size);
106 std::char_traits<unsigned char>::copy(data, reinterpret_cast<const unsigned char *>(str.data()) + pos, si);
107 }
108
109 static std::string to_ascending_key(uint32_t key);
110 static uint32_t from_ascending_key(const std::string &key);

Callers

nothing calls this directly

Calls 3

minFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected