MCPcopy Create free account
hub / github.com/DFHack/dfhack / lodepng_chunk_find

Function lodepng_chunk_find

depends/lodepng/lodepng.cpp:2548–2554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2546}
2547
2548unsigned char* lodepng_chunk_find(unsigned char* chunk, unsigned char* end, const char type[5]) {
2549 for(;;) {
2550 if(chunk >= end || end - chunk < 12) return 0; /* past file end: chunk + 12 > end */
2551 if(lodepng_chunk_type_equals(chunk, type)) return chunk;
2552 chunk = lodepng_chunk_next(chunk, end);
2553 }
2554}
2555
2556const unsigned char* lodepng_chunk_find_const(const unsigned char* chunk, const unsigned char* end, const char type[5]) {
2557 for(;;) {

Callers

nothing calls this directly

Calls 2

lodepng_chunk_nextFunction · 0.85

Tested by

no test coverage detected