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

Function lodepng_set32bitInt

depends/lodepng/lodepng.cpp:330–335  ·  view source on GitHub ↗

buffer must have at least 4 allocated bytes available*/

Source from the content-addressed store, hash-verified

328#if defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)
329/*buffer must have at least 4 allocated bytes available*/
330static void lodepng_set32bitInt(unsigned char* buffer, unsigned value) {
331 buffer[0] = (unsigned char)((value >> 24) & 0xff);
332 buffer[1] = (unsigned char)((value >> 16) & 0xff);
333 buffer[2] = (unsigned char)((value >> 8) & 0xff);
334 buffer[3] = (unsigned char)((value ) & 0xff);
335}
336#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
337
338/* ////////////////////////////////////////////////////////////////////////// */

Callers 7

lodepng_zlib_compressFunction · 0.85
lodepng_chunk_initFunction · 0.85
addChunk_IHDRFunction · 0.85
addChunk_pHYsFunction · 0.85
addChunk_gAMAFunction · 0.85
addChunk_cHRMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected