MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / EqualsTo

Method EqualsTo

TombEngine/Specific/IO/ChunkId.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool ChunkId::EqualsTo(ChunkId* other)
64{
65 if (m_length != other->GetLength())
66 return false;
67
68 return (strncmp((const char*)m_chunkBytes, (const char*)other->GetBytes(), m_length) == 0);
69}

Callers 1

ReadChunksMethod · 0.80

Calls 2

GetBytesMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected