Lines Matching defs:bufsize
30 int bufsize; /* number of bytes allocated to buf */
90 mb->bufsize = size;
106 return (((mb->tail >= mb->head) ? mb->tail : mb->bufsize) - mb->head);
119 return mb->bufsize - mb->tail - (mb->head == 0);
134 if (mb->tail == mb->bufsize)
146 if (mb->tail == mb->bufsize)
167 if (mb->head == mb->bufsize)
178 if (mb->head == mb->bufsize)
223 PR_ASSERT(mb->bufsize);
251 PR_ASSERT(mb->bufsize);
353 PRFileDesc *memio_CreateIOLayer(int bufsize)
365 memio_buffer_new(&secret->readbuf, bufsize);
366 memio_buffer_new(&secret->writebuf, bufsize);
388 PR_ASSERT(mb->bufsize);
397 PR_ASSERT(mb->bufsize);
401 if (mb->tail == mb->bufsize)
416 PR_ASSERT(mb->bufsize);
427 PR_ASSERT(mb->bufsize);
431 if (mb->head >= mb->bufsize)
432 mb->head -= mb->bufsize;