MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlBufUpdateInput

Function xmlBufUpdateInput

ThirdParty/libxml2/vtklibxml2/buf.c:945–954  ·  view source on GitHub ↗

* xmlBufUpdateInput: * @buf: an xmlBufPtr * @input: an xmlParserInputPtr * @pos: the cur value relative to the beginning of the buffer * * Update the input to use the base and cur relative to the buffer * after a possible reallocation of its content * * Returns -1 in case of error, 0 otherwise */

Source from the content-addressed store, hash-verified

943 * Returns -1 in case of error, 0 otherwise
944 */
945int
946xmlBufUpdateInput(xmlBufPtr buf, xmlParserInputPtr input, size_t pos) {
947 if ((buf == NULL) || (input == NULL))
948 return(-1);
949 CHECK_COMPAT(buf)
950 input->base = buf->content;
951 input->cur = input->base + pos;
952 input->end = &buf->content[buf->use];
953 return(0);
954}
955

Callers 5

htmlParseChunkFunction · 0.85
xmlParserGrowFunction · 0.85
xmlParserShrinkFunction · 0.85
xmlBufResetInputFunction · 0.85
xmlParseChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected