Home | History | Annotate | Download | only in hpcboot

Lines Matching refs:_stream

47 	_stream = &__stream;
48 memset(_stream, 0, sizeof(struct z_stream_s));
74 if (inflateInit2(_stream, -15) != Z_OK)
76 _stream->next_in = _inbuf;
107 _stream->next_out = reinterpret_cast<uint8_t *>(buf);
108 _stream->avail_out = len;
111 while (_stream->avail_out != 0) {
114 uint32_t n = _stream->avail_in;
115 if (n > _stream->avail_out)
116 n = _stream->avail_out;
118 memcpy(_stream->next_out, _stream->next_in, n);
119 _stream->next_out += n;
120 _stream->next_in += n;
121 _stream->avail_out -= n;
122 _stream->avail_in -= n;
124 if (_stream->avail_out > 0) {
125 got = _file->read(_stream->next_out,
126 _stream->avail_out);
130 _stream->avail_out -= got;
132 return(int)(len - _stream->avail_out);
135 if (_stream->avail_in == 0 && !_z_eof) {
140 _stream->avail_in = got;
141 _stream->next_in = _inbuf;
144 _z_err = inflate(_stream, Z_NO_FLUSH);
149 (_stream->next_out - start));
150 start = _stream->next_out;
153 _get_long() != _stream->total_out) {
159 inflateReset(_stream);
168 _crc = crc32(_crc, start,(unsigned int)(_stream->next_out - start));
170 return(int)(len - _stream->avail_out);
188 inflateEnd(_stream);
226 off_t pos = _stream->total_out;
239 _stream->avail_in = 0;
244 if (offset < _stream->total_out) {
247 inflateEnd(_stream);
249 inflateInit2(_stream, -15);
250 _stream->next_in = _inbuf;
256 if (offset > _stream->total_out) {
257 off_t toskip = offset - _stream->total_out;
277 if (_stream->avail_in == 0) {
285 _stream->avail_in = got;
286 _stream->next_in = _inbuf;
288 _stream->avail_in--;
289 return *(_stream->next_in)++;
333 _stream->avail_in++;
334 _stream->next_in--;
336 _z_err = _stream->avail_in != 0 ? Z_OK : Z_STREAM_END;