/* Returns the length of data in the internal content  */
size_t xmlBufLength(const xmlBufPtr buf)
/* Returns the length of data in the internal content  */
size_t xmlBufLength(const xmlBufPtr buf)
{
    if ((!buf) || (buf->error))
        return 0;
    CHECK_COMPAT(buf)
    return(buf->use);
}