| 36 | } |
| 37 | |
| 38 | XMLSize_t Bzip2InputStream::readBytes(XMLByte * const to_fill, const XMLSize_t max_to_read) |
| 39 | { |
| 40 | // Figure out whether we can really read. |
| 41 | if (bzip2_->streamEnd()) |
| 42 | { |
| 43 | return 0; |
| 44 | } |
| 45 | |
| 46 | unsigned char * fill_it = static_cast<unsigned char *>(to_fill); |
| 47 | XMLSize_t actual_read = (XMLSize_t) bzip2_->read((char *)fill_it, static_cast<size_t>(max_to_read)); |
| 48 | file_current_index_ += actual_read; |
| 49 | return actual_read; |
| 50 | } |
| 51 | |
| 52 | const XMLCh * Bzip2InputStream::getContentType() const |
| 53 | { |