Lines Matching refs:use
49 size_t use; /* The buffer size used */ member
63 if (buf->use < INT_MAX) buf->compat_use = buf->use; \
75 if (buf->use != (size_t) buf->compat_use) \
77 buf->use = buf->compat_use;
131 ret->use = 0; in xmlBufCreate()
165 ret->use = 0; in xmlBufCreateSize()
211 buf->use = 0; in xmlBufDetach()
249 ret->use = size; in xmlBufCreateStatic()
359 buf->use = 0; in xmlBufEmpty()
392 if (len > buf->use) return(0); in xmlBufShrink()
394 buf->use -= len; in xmlBufShrink()
411 memmove(buf->contentIO, &buf->content[0], buf->use); in xmlBufShrink()
413 buf->content[buf->use] = 0; in xmlBufShrink()
418 memmove(buf->content, &buf->content[len], buf->use); in xmlBufShrink()
419 buf->content[buf->use] = 0; in xmlBufShrink()
445 if (buf->use + len < buf->size) in xmlBufGrowInternal()
446 return(buf->size - buf->use); in xmlBufGrowInternal()
458 size = buf->use + len + 100; in xmlBufGrowInternal()
460 size = buf->use + len + 100; in xmlBufGrowInternal()
467 if ((buf->use + len >= XML_MAX_TEXT_LENGTH) || in xmlBufGrowInternal()
495 return(buf->size - buf->use); in xmlBufGrowInternal()
568 ret = fwrite(buf->content, sizeof(xmlChar), buf->use, file); in xmlBufDump()
606 return(&buf->content[buf->use]); in xmlBufEnd()
625 if (len > (buf->size - buf->use)) in xmlBufAddLen()
627 buf->use += len; in xmlBufAddLen()
629 if (buf->size > buf->use) in xmlBufAddLen()
630 buf->content[buf->use] = 0; in xmlBufAddLen()
650 if (len > buf->use) in xmlBufErase()
652 buf->use -= len; in xmlBufErase()
653 buf->content[buf->use] = 0; in xmlBufErase()
674 return(buf->use); in xmlBufLength()
693 return(buf->use); in xmlBufUse()
714 return(buf->size - buf->use); in xmlBufAvail()
732 return(buf->use == 0); in xmlBufIsEmpty()
788 if (buf->use < BASE_BUFFER_SIZE) in xmlBufResize()
812 memmove(buf->contentIO, buf->content, buf->use); in xmlBufResize()
814 buf->content[buf->use] = 0; in xmlBufResize()
828 } else if (buf->size - buf->use < 100) { in xmlBufResize()
838 memcpy(rebuf, buf->content, buf->use); in xmlBufResize()
840 rebuf[buf->use] = 0; in xmlBufResize()
891 needSize = buf->use + len + 2; in xmlBufAdd()
908 memmove(&buf->content[buf->use], str, len*sizeof(xmlChar)); in xmlBufAdd()
909 buf->use += len; in xmlBufAdd()
910 buf->content[buf->use] = 0; in xmlBufAdd()
965 buf->use += len; in xmlBufAddHead()
971 needSize = buf->use + len + 2; in xmlBufAddHead()
988 memmove(&buf->content[len], &buf->content[0], buf->use); in xmlBufAddHead()
990 buf->use += len; in xmlBufAddHead()
991 buf->content[buf->use] = 0; in xmlBufAddHead()
1042 if (buf->use + 10 >= buf->size) { in xmlBufCCat()
1043 if (!xmlBufResize(buf, buf->use+10)){ in xmlBufCCat()
1048 buf->content[buf->use++] = *cur; in xmlBufCCat()
1050 buf->content[buf->use] = 0; in xmlBufCCat()
1178 ret->use = buffer->use; in xmlBufFromBuffer()
1180 ret->compat_use = buffer->use; in xmlBufFromBuffer()
1219 if (buf->use > INT_MAX) { in xmlBufBackToBuffer()
1226 ret->use = INT_MAX; in xmlBufBackToBuffer()
1238 ret->use = (int) buf->use; in xmlBufBackToBuffer()
1266 (buffer->use > 0)) { in xmlBufMergeBuffer()
1267 ret = xmlBufAdd(buf, buffer->content, buffer->use); in xmlBufMergeBuffer()
1288 input->end = &buf->content[buf->use]; in xmlBufResetInput()
1340 input->end = &buf->content[buf->use]; in xmlBufSetInputBaseCur()