Lines Matching refs:stream
311 int jas_stream_close(jas_stream_t *stream);
318 #define jas_stream_eof(stream) \ argument
319 (((stream)->flags_ & JAS_STREAM_EOF) != 0)
322 #define jas_stream_error(stream) \ argument
323 (((stream)->flags_ & JAS_STREAM_ERR) != 0)
326 #define jas_stream_clearerr(stream) \ argument
327 ((stream)->flags_ &= ~(JAS_STREAM_ERR | JAS_STREAM_EOF))
330 #define jas_stream_getrwlimit(stream) \ argument
331 (((const jas_stream_t *)(stream))->rwlimit_)
334 int jas_stream_setrwlimit(jas_stream_t *stream, long rwlimit);
337 #define jas_stream_getrwcount(stream) \ argument
338 (((const jas_stream_t *)(stream))->rwcnt_)
341 long jas_stream_setrwcount(jas_stream_t *stream, long rwcnt);
349 #define jas_stream_getc(stream) jas_stream_getc_func(stream) argument
351 #define jas_stream_getc(stream) jas_stream_getc_macro(stream) argument
356 #define jas_stream_putc(stream, c) jas_stream_putc_func(stream, c) argument
358 #define jas_stream_putc(stream, c) jas_stream_putc_macro(stream, c) argument
362 int jas_stream_read(jas_stream_t *stream, void *buf, int cnt);
365 int jas_stream_write(jas_stream_t *stream, const void *buf, int cnt);
368 int jas_stream_printf(jas_stream_t *stream, const char *fmt, ...);
371 int jas_stream_puts(jas_stream_t *stream, const char *s);
374 char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize);
378 #define jas_stream_peekc(stream) \ argument
379 (((stream)->cnt_ <= 0) ? jas_stream_fillbuf(stream, 0) : \
380 ((int)(*(stream)->ptr_)))
383 int jas_stream_ungetc(jas_stream_t *stream, int c);
390 int jas_stream_isseekable(jas_stream_t *stream);
393 long jas_stream_seek(jas_stream_t *stream, long offset, int origin);
396 long jas_stream_tell(jas_stream_t *stream);
399 int jas_stream_rewind(jas_stream_t *stream);
406 int jas_stream_flush(jas_stream_t *stream);
416 int jas_stream_display(jas_stream_t *stream, FILE *fp, int n);
419 int jas_stream_gobble(jas_stream_t *stream, int n);
422 int jas_stream_pad(jas_stream_t *stream, int n, int c);
426 long jas_stream_length(jas_stream_t *stream);
436 #define jas_stream_getc_macro(stream) \ argument
437 ((!((stream)->flags_ & (JAS_STREAM_ERR | JAS_STREAM_EOF | \
439 (((stream)->rwlimit_ >= 0 && (stream)->rwcnt_ >= (stream)->rwlimit_) ? \
440 (stream->flags_ |= JAS_STREAM_RWLIMIT, EOF) : \
441 jas_stream_getc2(stream)) : EOF)
442 #define jas_stream_getc2(stream) \ argument
443 ((--(stream)->cnt_ < 0) ? jas_stream_fillbuf(stream, 1) : \
444 (++(stream)->rwcnt_, (int)(*(stream)->ptr_++)))
447 #define jas_stream_putc_macro(stream, c) \ argument
448 ((!((stream)->flags_ & (JAS_STREAM_ERR | JAS_STREAM_EOF | \
450 (((stream)->rwlimit_ >= 0 && (stream)->rwcnt_ >= (stream)->rwlimit_) ? \
451 (stream->flags_ |= JAS_STREAM_RWLIMIT, EOF) : \
452 jas_stream_putc2(stream, c)) : EOF)
453 #define jas_stream_putc2(stream, c) \ argument
454 (((stream)->bufmode_ |= JAS_STREAM_WRBUF, --(stream)->cnt_ < 0) ? \
455 jas_stream_flushbuf((stream), (uchar)(c)) : \
456 (++(stream)->rwcnt_, (int)(*(stream)->ptr_++ = (c))))
460 int jas_stream_fillbuf(jas_stream_t *stream, int getflag);
461 int jas_stream_flushbuf(jas_stream_t *stream, int c);
462 int jas_stream_getc_func(jas_stream_t *stream);
463 int jas_stream_putc_func(jas_stream_t *stream, int c);