Lines Matching refs:stream
28 php_stream *stream; member
31 static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count) in php_gziop_read() argument
33 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_read()
40 stream->eof = 1; in php_gziop_read()
46 static ssize_t php_gziop_write(php_stream *stream, const char *buf, size_t count) in php_gziop_write() argument
48 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_write()
54 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) in php_gziop_seek() argument
56 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_seek()
69 static int php_gziop_close(php_stream *stream, int close_handle) in php_gziop_close() argument
71 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_close()
79 if (self->stream) { in php_gziop_close()
80 php_stream_close(self->stream); in php_gziop_close()
81 self->stream = NULL; in php_gziop_close()
89 static int php_gziop_flush(php_stream *stream) in php_gziop_flush() argument
91 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_flush()
110 php_stream *stream = NULL, *innerstream = NULL; in php_stream_gzopen() local
133 self->stream = innerstream; in php_stream_gzopen()
142 stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); in php_stream_gzopen()
143 if (stream) { in php_stream_gzopen()
144 stream->flags |= PHP_STREAM_FLAG_NO_BUFFER; in php_stream_gzopen()
145 return stream; in php_stream_gzopen()