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

Method ExtractString

libi2pd/util.cpp:262–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 std::string_view Mapping::ExtractString (const uint8_t * buf, size_t len)
263 {
264 uint8_t l = buf[0];
265 if (l > len) l = len;
266 return { (const char *)(buf + 1), l };
267 }
268
269 size_t Mapping::ToBuffer (uint8_t * buf, size_t len) const
270 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected