MCPcopy Create free account
hub / github.com/attermann/microReticulum / toString

Method toString

src/microReticulum/Resource.cpp:1452–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1450// ============================================================================
1451
1452std::string Resource::toString() const {
1453 if (!_object) return "";
1454 // Mirror Python __str__() (Resource.py:1230): "<hash/link_id>".
1455 std::string s = "<";
1456 s += _object->_hash.toHex();
1457 s += "/";
1458 if (_object->_link) s += _object->_link.link_id().toHex();
1459 s += ">";
1460 return s;
1461}
1462
1463
1464// ============================================================================

Callers 1

acceptMethod · 0.45

Calls 1

toHexMethod · 0.80

Tested by

no test coverage detected