MCPcopy Create free account
hub / github.com/KDE/kdiff3 / isBinaryEqualWith

Method isBinaryEqualWith

src/SourceData.cpp:212–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212bool SourceData::isBinaryEqualWith(const QSharedPointer<SourceData>& other) const
213{
214 return m_fileAccess.exists() && other->m_fileAccess.exists() &&
215 getSizeBytes() == other->getSizeBytes() &&
216 (getSizeBytes() == 0 || memcmp(getBuf(), other->getBuf(), getSizeBytes()) == 0);
217}
218
219/*
220 Warning: Do not call this function without re-running the comparison or

Callers 1

mainInitMethod · 0.80

Calls 3

getSizeBytesMethod · 0.80
getBufMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected