Lines Matching refs:stream
30 php_stream *stream; member
33 static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count) in php_gziop_read() argument
35 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_read()
42 stream->eof = 1; in php_gziop_read()
48 static ssize_t php_gziop_write(php_stream *stream, const char *buf, size_t count) in php_gziop_write() argument
50 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_write()
56 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) in php_gziop_seek() argument
58 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_seek()
71 static int php_gziop_close(php_stream *stream, int close_handle) in php_gziop_close() argument
73 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_close()
81 if (self->stream) { in php_gziop_close()
82 php_stream_close(self->stream); in php_gziop_close()
83 self->stream = NULL; in php_gziop_close()
91 static int php_gziop_flush(php_stream *stream) in php_gziop_flush() argument
93 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_flush()
112 php_stream *stream = NULL, *innerstream = NULL; in php_stream_gzopen() local
135 self->stream = innerstream; in php_stream_gzopen()
144 stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); in php_stream_gzopen()
145 if (stream) { in php_stream_gzopen()
146 stream->flags |= PHP_STREAM_FLAG_NO_BUFFER; in php_stream_gzopen()
147 return stream; in php_stream_gzopen()