| 31 | } |
| 32 | |
| 33 | XMLSize_t GzipInputStream::readBytes(XMLByte * const to_fill, const XMLSize_t max_to_read) |
| 34 | { |
| 35 | // Figure out whether we can really read. |
| 36 | if (gzip_->streamEnd()) |
| 37 | { |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | unsigned char * fill_it = static_cast<unsigned char *>(to_fill); |
| 42 | XMLSize_t actual_read = (XMLSize_t) gzip_->read((char *)fill_it, static_cast<size_t>(max_to_read)); |
| 43 | file_current_index_ += actual_read; |
| 44 | return actual_read; |
| 45 | } |
| 46 | |
| 47 | const XMLCh * GzipInputStream::getContentType() const |
| 48 | { |
no test coverage detected