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

Function xmlBufferSetAllocationScheme

ThirdParty/libxml2/vtklibxml2/tree.c:7210–7221  ·  view source on GitHub ↗

* xmlBufferSetAllocationScheme: * @buf: the buffer to tune * @scheme: allocation scheme to use * * Sets the allocation scheme for this buffer */

Source from the content-addressed store, hash-verified

7208 * Sets the allocation scheme for this buffer
7209 */
7210void
7211xmlBufferSetAllocationScheme(xmlBufferPtr buf,
7212 xmlBufferAllocationScheme scheme) {
7213 if (buf == NULL) {
7214 return;
7215 }
7216 if (buf->alloc == XML_BUFFER_ALLOC_IO) return;
7217 if ((scheme == XML_BUFFER_ALLOC_DOUBLEIT) ||
7218 (scheme == XML_BUFFER_ALLOC_EXACT) ||
7219 (scheme == XML_BUFFER_ALLOC_HYBRID))
7220 buf->alloc = scheme;
7221}
7222
7223/**
7224 * xmlBufferFree:

Callers 3

xsdIncorrectTestCaseFunction · 0.85
installResourcesFunction · 0.85
xsdTestCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected