MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / FromString

Method FromString

libi2pd_client/SOCKS.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 uint8_t size;
35 char value[max_socks_hostname_size];
36 void FromString (const std::string& str)
37 {
38 size = str.length();
39 if (str.length() > max_socks_hostname_size) size = max_socks_hostname_size;
40 memcpy(value,str.c_str(),size);
41 }
42 std::string ToString() { return std::string(value, size); }
43 void push_back (char c) { value[size++] = c; }
44 };

Callers 1

SocksRequestSuccessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected