MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / xmlOutputBufferCreateFile

Function xmlOutputBufferCreateFile

Externals/LibXML/xmlIO.c:2639–2656  ·  view source on GitHub ↗

* xmlOutputBufferCreateFile: * @file: a FILE* * @encoder: the encoding converter or NULL * * Create a buffered output for the progressive saving to a FILE * * buffered C I/O * * Returns the new parser output or NULL */

Source from the content-addressed store, hash-verified

2637 * Returns the new parser output or NULL
2638 */
2639xmlOutputBufferPtr
2640xmlOutputBufferCreateFile(FILE *file, xmlCharEncodingHandlerPtr encoder) {
2641 xmlOutputBufferPtr ret;
2642
2643 if (xmlOutputCallbackInitialized == 0)
2644 xmlRegisterDefaultOutputCallbacks();
2645
2646 if (file == NULL) return(NULL);
2647
2648 ret = xmlAllocOutputBuffer(encoder);
2649 if (ret != NULL) {
2650 ret->context = file;
2651 ret->writecallback = xmlFileWrite;
2652 ret->closecallback = xmlFileFlush;
2653 }
2654
2655 return(ret);
2656}
2657
2658/**
2659 * xmlOutputBufferCreateBuffer:

Callers 8

xmlDumpXMLCatalogFunction · 0.85
htmlNodeDumpFileFormatFunction · 0.85
htmlDocDumpFunction · 0.85
xmlElemDumpFunction · 0.85
xmlDocFormatDumpFunction · 0.85
libxml_saveNodeToFunction · 0.85
libxml_C14NDocSaveToFunction · 0.85

Calls 2

xmlAllocOutputBufferFunction · 0.85

Tested by 1