MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / ucvector_init_buffer

Function ucvector_init_buffer

dependency/densecrf/examples/lodepng.cpp:256–260  ·  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

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