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

Function xmlBufferCreate

ThirdParty/libxml2/vtklibxml2/tree.c:7110–7128  ·  view source on GitHub ↗

* xmlBufferCreate: * * routine to create an XML buffer. * returns the new structure. */

Source from the content-addressed store, hash-verified

7108 * returns the new structure.
7109 */
7110xmlBufferPtr
7111xmlBufferCreate(void) {
7112 xmlBufferPtr ret;
7113
7114 ret = (xmlBufferPtr) xmlMalloc(sizeof(xmlBuffer));
7115 if (ret == NULL)
7116 return(NULL);
7117 ret->use = 0;
7118 ret->size = xmlDefaultBufferSize;
7119 ret->alloc = xmlBufferAllocScheme;
7120 ret->content = (xmlChar *) xmlMallocAtomic(ret->size);
7121 if (ret->content == NULL) {
7122 xmlFree(ret);
7123 return(NULL);
7124 }
7125 ret->content[0] = 0;
7126 ret->contentIO = NULL;
7127 return(ret);
7128}
7129
7130/**
7131 * xmlBufferCreateSize:

Callers 5

closeFileMethod · 0.85
xsdIncorrectTestCaseFunction · 0.85
installResourcesFunction · 0.85
xsdTestCaseFunction · 0.85
SerializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected