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

Function xmlBufferDetach

ThirdParty/libxml2/vtklibxml2/tree.c:7172–7185  ·  view source on GitHub ↗

* xmlBufferDetach: * @buf: the buffer * * Remove the string contained in a buffer and gie it back to the * caller. The buffer is reset to an empty content. * This doesn't work with immutable buffers as they can't be reset. * * Returns the previous string contained by the buffer. */

Source from the content-addressed store, hash-verified

7170 * Returns the previous string contained by the buffer.
7171 */
7172xmlChar *
7173xmlBufferDetach(xmlBufferPtr buf) {
7174 xmlChar *ret;
7175
7176 if (buf == NULL)
7177 return(NULL);
7178
7179 ret = buf->content;
7180 buf->content = NULL;
7181 buf->size = 0;
7182 buf->use = 0;
7183
7184 return ret;
7185}
7186
7187
7188/**

Callers 9

xmlDumpElementDeclFunction · 0.85
xmlDumpElementTableFunction · 0.85
xmlDumpAttributeDeclFunction · 0.85
xmlDumpAttributeTableFunction · 0.85
xmlDumpNotationDeclFunction · 0.85
xmlDumpNotationTableFunction · 0.85
xmlDumpEntityDeclFunction · 0.85
xmlDumpEntitiesTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected