MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / readBytes

Method readBytes

src/openms/source/FORMAT/GzipInputStream.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

Calls 2

streamEndMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected