1 #ifndef XML_BUF_H_PRIVATE__ 2 #define XML_BUF_H_PRIVATE__ 3 4 #include <libxml/parser.h> 5 #include <libxml/tree.h> 6 7 XML_HIDDEN xmlBufPtr 8 xmlBufCreate(size_t size); 9 XML_HIDDEN xmlBufPtr 10 xmlBufCreateMem(const xmlChar *mem, size_t size, int isStatic); 11 XML_HIDDEN void 12 xmlBufFree(xmlBufPtr buf); 13 14 XML_HIDDEN void 15 xmlBufEmpty(xmlBufPtr buf); 16 17 XML_HIDDEN int 18 xmlBufGrow(xmlBufPtr buf, size_t len); 19 20 XML_HIDDEN int 21 xmlBufAdd(xmlBufPtr buf, const xmlChar *str, size_t len); 22 XML_HIDDEN int 23 xmlBufCat(xmlBufPtr buf, const xmlChar *str); 24 25 XML_HIDDEN size_t 26 xmlBufAvail(const xmlBufPtr buf); 27 XML_HIDDEN int 28 xmlBufIsEmpty(const xmlBufPtr buf); 29 XML_HIDDEN int 30 xmlBufAddLen(xmlBufPtr buf, size_t len); 31 32 XML_HIDDEN xmlChar * 33 xmlBufDetach(xmlBufPtr buf); 34 35 XML_HIDDEN xmlBufPtr 36 xmlBufFromBuffer(xmlBufferPtr buffer); 37 XML_HIDDEN int 38 xmlBufBackToBuffer(xmlBufPtr buf, xmlBufferPtr ret); 39 40 XML_HIDDEN int 41 xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input); 42 XML_HIDDEN int 43 xmlBufUpdateInput(xmlBufPtr buf, xmlParserInputPtr input, size_t pos); 44 45 #endif /* XML_BUF_H_PRIVATE__ */ 46