* 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 */
| 943 | * Returns -1 in case of error, 0 otherwise |
| 944 | */ |
| 945 | int |
| 946 | xmlBufUpdateInput(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 |
no outgoing calls
no test coverage detected