MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / lodepng_set32bitInt

Function lodepng_set32bitInt

src/lodepng.cpp:326–332  ·  view source on GitHub ↗

buffer must have at least 4 allocated bytes available*/

Source from the content-addressed store, hash-verified

324#if defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)
325/*buffer must have at least 4 allocated bytes available*/
326static void lodepng_set32bitInt(unsigned char* buffer, unsigned value)
327{
328 buffer[0] = (unsigned char)((value >> 24) & 0xff);
329 buffer[1] = (unsigned char)((value >> 16) & 0xff);
330 buffer[2] = (unsigned char)((value >> 8) & 0xff);
331 buffer[3] = (unsigned char)((value ) & 0xff);
332}
333#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
334
335#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