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

Function ucvector_init_buffer

src/lodepng.cpp:255–259  ·  view source on GitHub ↗

you can both convert from vector to buffer&size and vica versa. If you use init_buffer to take over a buffer and size, it is not needed to use cleanup*/

Source from the content-addressed store, hash-verified

253/*you can both convert from vector to buffer&size and vica versa. If you use
254init_buffer to take over a buffer and size, it is not needed to use cleanup*/
255static void ucvector_init_buffer(ucvector* p, unsigned char* buffer, size_t size)
256{
257 p->data = buffer;
258 p->allocsize = p->size = size;
259}
260#endif /*LODEPNG_COMPILE_ZLIB*/
261
262#if (defined(LODEPNG_COMPILE_PNG) && defined(LODEPNG_COMPILE_ANCILLARY_CHUNKS)) || defined(LODEPNG_COMPILE_ENCODER)

Callers 3

lodepng_inflateFunction · 0.85
lodepng_deflateFunction · 0.85
lodepng_zlib_compressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected