Lines Matching refs:bufsize
102 int bufsize);
171 jas_stream_t *jas_stream_memopen(char *buf, int bufsize) in jas_stream_memopen() argument
205 if (bufsize <= 0) { in jas_stream_memopen()
209 obj->bufsize_ = bufsize; in jas_stream_memopen()
223 if (bufsize > 0 && buf) { in jas_stream_memopen()
226 obj->len_ = bufsize; in jas_stream_memopen()
582 char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize) in jas_stream_gets() argument
586 assert(bufsize > 0); in jas_stream_gets()
589 while (bufsize > 1) { in jas_stream_gets()
594 --bufsize; in jas_stream_gets()
706 int bufsize) in jas_stream_initbuf() argument
731 assert(bufsize > JAS_STREAM_MAXPUTBACK); in jas_stream_initbuf()
733 stream->bufsize_ = bufsize - JAS_STREAM_MAXPUTBACK; in jas_stream_initbuf()
999 static int mem_resize(jas_stream_memobj_t *m, int bufsize) in mem_resize() argument
1004 if (!(buf = jas_realloc(m->buf_, bufsize))) { in mem_resize()
1008 m->bufsize_ = bufsize; in mem_resize()