MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Png_Detect

Function Png_Detect

src/Bitmap.c:113–115  ·  view source on GitHub ↗

5.2 PNG signature */

Source from the content-addressed store, hash-verified

111
112/* 5.2 PNG signature */
113cc_bool Png_Detect(const cc_uint8* data, cc_uint32 len) {
114 return len >= PNG_SIG_SIZE && Mem_Equal(data, pngSig, PNG_SIG_SIZE);
115}
116
117
118/*########################################################################################################################*

Callers 1

Png_DecodeFunction · 0.85

Calls 1

Mem_EqualFunction · 0.85

Tested by

no test coverage detected