ReactOS 0.4.15-dev-5666-gc548b97
buf.h
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 */
12
13#ifndef __XML_BUF_H__
14#define __XML_BUF_H__
15
16#include <libxml/tree.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
25
29
32
33/* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
34int xmlBufGrow(xmlBufPtr buf, int len);
35int xmlBufResize(xmlBufPtr buf, size_t len);
36
37int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
38int xmlBufCat(xmlBufPtr buf, const xmlChar *str);
39int xmlBufCCat(xmlBufPtr buf, const char *str);
41
42size_t xmlBufAvail(const xmlBufPtr buf);
43size_t xmlBufLength(const xmlBufPtr buf);
44/* size_t xmlBufUse(const xmlBufPtr buf); */
45int xmlBufIsEmpty(const xmlBufPtr buf);
46int xmlBufAddLen(xmlBufPtr buf, size_t len);
47
48/* const xmlChar * xmlBufContent(const xmlBuf *buf); */
49/* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
50
52
54
58
62 size_t base, size_t cur);
63#ifdef __cplusplus
64}
65#endif
66#endif /* __XML_BUF_H__ */
67
size_t xmlBufAvail(const xmlBufPtr buf)
Definition: buf.c:655
int xmlBufAddLen(xmlBufPtr buf, size_t len)
Definition: buf.c:592
void xmlBufEmpty(xmlBufPtr buf)
Definition: buf.c:348
xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer)
Definition: buf.c:977
int xmlBufGetAllocationScheme(xmlBufPtr buf)
Definition: buf.c:260
size_t xmlBufLength(const xmlBufPtr buf)
Definition: buf.c:614
int xmlBufIsEmpty(const xmlBufPtr buf)
Definition: buf.c:673
void xmlBufFree(xmlBufPtr buf)
Definition: buf.c:322
int xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input)
Definition: buf.c:1094
xmlChar * xmlBufDetach(xmlBufPtr buf)
Definition: buf.c:196
xmlBufPtr xmlBufCreateStatic(void *mem, size_t size)
Definition: buf.c:230
xmlBufPtr xmlBufCreateSize(size_t size)
Definition: buf.c:155
xmlBufPtr xmlBufCreate(void)
Definition: buf.c:122
int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer)
Definition: buf.c:1068
int xmlBufSetAllocationScheme(xmlBufPtr buf, xmlBufferAllocationScheme scheme)
Definition: buf.c:281
size_t xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input)
Definition: buf.c:1113
int xmlBufResize(xmlBufPtr buf, size_t len)
Definition: buf.c:692
int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string)
Definition: buf.c:921
xmlBufferPtr xmlBufBackToBuffer(xmlBufPtr buf)
Definition: buf.c:1013
size_t xmlBufDump(FILE *file, xmlBufPtr buf)
Definition: buf.c:519
int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len)
Definition: buf.c:821
int xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input, size_t base, size_t cur)
Definition: buf.c:1144
int xmlBufGrow(xmlBufPtr buf, int len)
Definition: buf.c:498
int xmlBufCat(xmlBufPtr buf, const xmlChar *str)
Definition: buf.c:884
int xmlBufCCat(xmlBufPtr buf, const char *str)
Definition: buf.c:904
FxCollectionEntry * cur
GLsizeiptr size
Definition: glext.h:5919
GLuint buffer
Definition: glext.h:5915
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLenum GLsizei len
Definition: glext.h:6722
GLenum GLenum GLenum input
Definition: glext.h:9031
const WCHAR * str
DWORD scheme
xmlBufferAllocationScheme
Definition: tree.h:74
Definition: buf.c:43
Definition: fci.c:127
Definition: mem.c:156
unsigned char xmlChar
Definition: xmlstring.h:28