Lines Matching refs:used
453 unsigned int used; member
482 int used = (pos) + (n);\
483 if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
485 if ((buf)->used < (unsigned int )used) (buf)->used = used;\
489 int used = (pos) + 1;\
490 if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
492 if ((buf)->used < (unsigned int )used) (buf)->used = used;\
495 #define BBUF_ADD(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n))
496 #define BBUF_ADD1(buf,byte) BBUF_WRITE1((buf),(buf)->used,(byte))
497 #define BBUF_GET_ADD_ADDRESS(buf) ((buf)->p + (buf)->used)
498 #define BBUF_GET_OFFSET_POS(buf) ((buf)->used)
504 if ((unsigned int )((to)+(n)) > (buf)->used) (buf)->used = (to) + (n);\
514 xmemmove((buf)->p + (to), (buf)->p + (from), (buf)->used - (from));\
515 (buf)->used -= (from - to);\
519 if (pos >= (buf)->used) {\
523 BBUF_MOVE_RIGHT((buf),(pos),(pos) + (n),((buf)->used - (pos)));\