1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +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