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

Function xmlSaveToBuffer

ThirdParty/libxml2/vtklibxml2/xmlsave.c:2064–2078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2062 */
2063
2064xmlSaveCtxtPtr
2065xmlSaveToBuffer(xmlBufferPtr buffer, const char *encoding, int options)
2066{
2067 xmlSaveCtxtPtr ret;
2068
2069 ret = xmlNewSaveCtxt(encoding, options);
2070 if (ret == NULL) return(NULL);
2071 ret->buf = xmlOutputBufferCreateBuffer(buffer, ret->handler);
2072 if (ret->buf == NULL) {
2073 xmlCharEncCloseFunc(ret->handler);
2074 xmlFreeSaveCtxt(ret);
2075 return(NULL);
2076 }
2077 return(ret);
2078}
2079
2080/**
2081 * xmlSaveToIO:

Callers 8

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 4

xmlNewSaveCtxtFunction · 0.85
xmlCharEncCloseFuncFunction · 0.85
xmlFreeSaveCtxtFunction · 0.85

Tested by

no test coverage detected