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

Function ucvector_init_buffer

samples/shared/lodepng.cpp:272–276  ·  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

270/*you can both convert from vector to buffer&size and vica versa. If you use
271init_buffer to take over a buffer and size, it is not needed to use cleanup*/
272static void ucvector_init_buffer(ucvector* p, unsigned char* buffer, size_t size)
273{
274 p->data = buffer;
275 p->allocsize = p->size = size;
276}
277#endif /*LODEPNG_COMPILE_ZLIB*/
278
279#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