MCPcopy Create free account
hub / github.com/ddnet/ddnet / DataEquals

Method DataEquals

src/engine/gfx/image.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool CImageInfo::DataEquals(const CImageInfo &Other) const
61{
62 if(m_Width != Other.m_Width || m_Height != Other.m_Height || m_Format != Other.m_Format)
63 return false;
64 if(m_pData == nullptr && Other.m_pData == nullptr)
65 return true;
66 if(m_pData == nullptr || Other.m_pData == nullptr)
67 return false;
68 return mem_comp(m_pData, Other.m_pData, DataSize()) == 0;
69}
70
71ColorRGBA CImageInfo::PixelColor(size_t x, size_t y) const
72{

Callers 2

AppendMethod · 0.80
DilateFileFunction · 0.80

Calls 1

mem_compFunction · 0.85

Tested by

no test coverage detected