MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlBufferCreateStatic

Function xmlBufferCreateStatic

ThirdParty/libxml2/vtklibxml2/tree.c:7195–7201  ·  view source on GitHub ↗

* xmlBufferCreateStatic: * @mem: the memory area * @size: the size in byte * * Returns an XML buffer initialized with bytes. */

Source from the content-addressed store, hash-verified

7193 * Returns an XML buffer initialized with bytes.
7194 */
7195xmlBufferPtr
7196xmlBufferCreateStatic(void *mem, size_t size) {
7197 xmlBufferPtr buf = xmlBufferCreateSize(size);
7198
7199 xmlBufferAdd(buf, mem, size);
7200 return(buf);
7201}
7202
7203/**
7204 * xmlBufferSetAllocationScheme:

Callers

nothing calls this directly

Calls 2

xmlBufferCreateSizeFunction · 0.85
xmlBufferAddFunction · 0.85

Tested by

no test coverage detected