VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/buf.h@ 103285

最後變更 在這個檔案從103285是 95312,由 vboxsync 提交於 2 年 前

libs/{curl,libxml2}: OSE export fixes, bugref:8515

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.3 KB
 
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
22xmlBufPtr xmlBufCreate(void);
23xmlBufPtr xmlBufCreateSize(size_t size);
24xmlBufPtr xmlBufCreateStatic(void *mem, size_t size);
25
26int xmlBufSetAllocationScheme(xmlBufPtr buf,
27 xmlBufferAllocationScheme scheme);
28int xmlBufGetAllocationScheme(xmlBufPtr buf);
29
30void xmlBufFree(xmlBufPtr buf);
31void xmlBufEmpty(xmlBufPtr buf);
32
33/* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
34int xmlBufGrow(xmlBufPtr buf, int len);
35int xmlBufInflate(xmlBufPtr buf, size_t len);
36int xmlBufResize(xmlBufPtr buf, size_t len);
37
38int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
39int xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len);
40int xmlBufCat(xmlBufPtr buf, const xmlChar *str);
41int xmlBufCCat(xmlBufPtr buf, const char *str);
42int xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string);
43int xmlBufWriteChar(xmlBufPtr buf, const char *string);
44int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string);
45
46size_t xmlBufAvail(const xmlBufPtr buf);
47size_t xmlBufLength(const xmlBufPtr buf);
48/* size_t xmlBufUse(const xmlBufPtr buf); */
49int xmlBufIsEmpty(const xmlBufPtr buf);
50int xmlBufAddLen(xmlBufPtr buf, size_t len);
51int xmlBufErase(xmlBufPtr buf, size_t len);
52
53/* const xmlChar * xmlBufContent(const xmlBuf *buf); */
54/* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
55
56xmlChar * xmlBufDetach(xmlBufPtr buf);
57
58size_t xmlBufDump(FILE *file, xmlBufPtr buf);
59
60xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer);
61xmlBufferPtr xmlBufBackToBuffer(xmlBufPtr buf);
62int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer);
63
64int xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input);
65size_t xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input);
66int xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input,
67 size_t base, size_t cur);
68#ifdef __cplusplus
69}
70#endif
71#endif /* __XML_BUF_H__ */
72
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette