ReactOS  0.4.15-dev-4914-g2220e56
Go to the documentation of this file.
1 /*
2  * Summary: Internal Interfaces for memory buffers in libxml2
3  * Description: this module describes most of the new xmlBuf buffer
4  * entry points, those are private routines, with a
5  * few exceptions exported in tree.h. This was added
6  * in 2.9.0.
7  *
8  * Copy: See Copyright for the status of this software.
9  *
10  * Author: Daniel Veillard
11  */
13 #ifndef __XML_BUF_H__
14 #define __XML_BUF_H__
16 #include <libxml/tree.h>
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
24 xmlBufPtr xmlBufCreateStatic(void *mem, size_t size);
33 /* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
34 int xmlBufGrow(xmlBufPtr buf, int len);
35 int xmlBufInflate(xmlBufPtr buf, size_t len);
36 int xmlBufResize(xmlBufPtr buf, size_t len);
38 int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
39 int xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len);
40 int xmlBufCat(xmlBufPtr buf, const xmlChar *str);
41 int xmlBufCCat(xmlBufPtr buf, const char *str);
42 int xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string);
43 int xmlBufWriteChar(xmlBufPtr buf, const char *string);
44 int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string);
46 size_t xmlBufAvail(const xmlBufPtr buf);
47 size_t xmlBufLength(const xmlBufPtr buf);
48 /* size_t xmlBufUse(const xmlBufPtr buf); */
49 int xmlBufIsEmpty(const xmlBufPtr buf);
50 int xmlBufAddLen(xmlBufPtr buf, size_t len);
51 int xmlBufErase(xmlBufPtr buf, size_t len);
53 /* const xmlChar * xmlBufContent(const xmlBuf *buf); */
54 /* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
58 size_t xmlBufDump(FILE *file, xmlBufPtr buf);
67  size_t base, size_t cur);
68 #ifdef __cplusplus
69 }
70 #endif
71 #endif /* __XML_BUF_H__ */
int xmlBufInflate(xmlBufPtr buf, size_t len)
Definition: buf.c:531
size_t xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input)
Definition: buf.c:1304
xmlBufPtr xmlBufCreate(void)
Definition: buf.c:122
int xmlBufErase(xmlBufPtr buf, size_t len)
Definition: buf.c:646
xmlBufPtr xmlBufCreateSize(size_t size)
Definition: buf.c:156
DWORD scheme
void xmlBufFree(xmlBufPtr buf)
Definition: buf.c:329
GLuint buffer
Definition: glext.h:5915
xmlBufferPtr xmlBufBackToBuffer(xmlBufPtr buf)
Definition: buf.c:1204
size_t xmlBufAvail(const xmlBufPtr buf)
Definition: buf.c:708
int xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len)
Definition: buf.c:928
int xmlBufGetAllocationScheme(xmlBufPtr buf)
Definition: buf.c:267
Definition: buf.c:43
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string)
Definition: buf.c:1111
Definition: tree.h:74
const WCHAR * str
int xmlBufGrow(xmlBufPtr buf, int len)
Definition: buf.c:509
xmlBufPtr xmlBufCreateStatic(void *mem, size_t size)
Definition: buf.c:231
xmlChar * xmlBufDetach(xmlBufPtr buf)
Definition: buf.c:196
GLsizeiptr size
Definition: glext.h:5919
int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer)
Definition: buf.c:1259
void xmlBufEmpty(xmlBufPtr buf)
Definition: buf.c:355
int xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input, size_t base, size_t cur)
Definition: buf.c:1335
unsigned char xmlChar
Definition: xmlstring.h:28
GLenum GLsizei len
Definition: glext.h:6722
FxCollectionEntry * cur
GLenum GLenum GLenum input
Definition: glext.h:9031
int xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string)
Definition: buf.c:1067
int xmlBufWriteChar(xmlBufPtr buf, const char *string)
Definition: buf.c:1088
size_t xmlBufLength(const xmlBufPtr buf)
Definition: buf.c:668
Definition: mem.c:156
int xmlBufAddLen(xmlBufPtr buf, size_t len)
Definition: buf.c:621
int xmlBufCat(xmlBufPtr buf, const xmlChar *str)
Definition: buf.c:1007
int xmlBufIsEmpty(const xmlBufPtr buf)
Definition: buf.c:726
int xmlBufCCat(xmlBufPtr buf, const char *str)
Definition: buf.c:1027
int xmlBufSetAllocationScheme(xmlBufPtr buf, xmlBufferAllocationScheme scheme)
Definition: buf.c:288
xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer)
Definition: buf.c:1167
size_t xmlBufDump(FILE *file, xmlBufPtr buf)
Definition: buf.c:548
int xmlBufResize(xmlBufPtr buf, size_t len)
Definition: buf.c:745
int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len)
Definition: buf.c:868
int xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input)
Definition: buf.c:1285
Definition: fci.c:126