1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-21 22:50:08 +03:00

parser: Clarify documentation regarding xmlReadMemory buffer size

Fixes #638.
This commit is contained in:
Nick Wellnhofer 2023-11-30 16:52:34 +01:00
parent e395946194
commit c7629c9eb1
2 changed files with 12 additions and 6 deletions

View File

@ -5121,7 +5121,8 @@ htmlNewSAXParserCtxt(const htmlSAXHandler *sax, void *userData)
* @buffer: a pointer to a char array
* @size: the size of the array
*
* Create a parser context for an HTML in-memory document.
* Create a parser context for an HTML in-memory document. The input buffer
* must not contain a terminating null byte.
*
* Returns the new parser context or NULL
*/
@ -6629,7 +6630,8 @@ htmlReadFile(const char *filename, const char *encoding, int options)
* @encoding: the document encoding, or NULL
* @options: a combination of htmlParserOption(s)
*
* parse an XML in-memory document and build a tree.
* Parse an HTML in-memory document and build a tree. The input buffer must
* not contain a terminating null byte.
*
* Returns the resulting document tree
*/
@ -6821,7 +6823,8 @@ htmlCtxtReadFile(htmlParserCtxtPtr ctxt, const char *filename,
* @encoding: the document encoding, or NULL
* @options: a combination of htmlParserOption(s)
*
* parse an XML in-memory document and build a tree.
* Parse an HTML in-memory document and build a tree. The input buffer must
* not contain a terminating null byte.
* This reuses the existing @ctxt parser context
*
* Returns the resulting document tree

View File

@ -13987,7 +13987,8 @@ xmlSAXUserParseFile(xmlSAXHandlerPtr sax, void *user_data,
* @buffer: a pointer to a char array
* @size: the size of the array
*
* Create a parser context for an XML in-memory document.
* Create a parser context for an XML in-memory document. The input buffer
* must not contain a terminating null byte.
*
* Returns the new parser context or NULL
*/
@ -14831,7 +14832,8 @@ xmlReadFile(const char *filename, const char *encoding, int options)
* @encoding: the document encoding, or NULL
* @options: a combination of xmlParserOption
*
* parse an XML in-memory document and build a tree.
* Parse an XML in-memory document and build a tree. The input buffer must
* not contain a terminating null byte.
*
* Returns the resulting document tree
*/
@ -15023,7 +15025,8 @@ xmlCtxtReadFile(xmlParserCtxtPtr ctxt, const char *filename,
* @encoding: the document encoding, or NULL
* @options: a combination of xmlParserOption
*
* parse an XML in-memory document and build a tree.
* Parse an XML in-memory document and build a tree. The input buffer must
* not contain a terminating null byte.
* This reuses the existing @ctxt parser context
*
* Returns the resulting document tree