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

Function GetIdentityBufferLen

libi2pd/Identity.cpp:490–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488 }
489
490 size_t GetIdentityBufferLen (const uint8_t * buf, size_t len)
491 {
492 if (len < DEFAULT_IDENTITY_SIZE) return 0;
493 size_t l = DEFAULT_IDENTITY_SIZE + bufbe16toh (buf + DEFAULT_IDENTITY_SIZE - 2);
494 if (l > len) return 0;
495 return l;
496 }
497
498 PrivateKeys& PrivateKeys::operator=(const Keys& keys)
499 {

Callers 1

Calls 1

bufbe16tohFunction · 0.85

Tested by

no test coverage detected