MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / lodepng_set32bitInt

Function lodepng_set32bitInt

samples/shared/lodepng.cpp:343–349  ·  view source on GitHub ↗

buffer must have at least 4 allocated bytes available*/

Source from the content-addressed store, hash-verified

341#if defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)
342/*buffer must have at least 4 allocated bytes available*/
343static void lodepng_set32bitInt(unsigned char* buffer, unsigned value)
344{
345 buffer[0] = (unsigned char)((value >> 24) & 0xff);
346 buffer[1] = (unsigned char)((value >> 16) & 0xff);
347 buffer[2] = (unsigned char)((value >> 8) & 0xff);
348 buffer[3] = (unsigned char)((value ) & 0xff);
349}
350#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
351
352#ifdef LODEPNG_COMPILE_ENCODER

Callers 3

lodepng_add32bitIntFunction · 0.85
lodepng_chunk_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected