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

Method readBytes

src/openms/source/FORMAT/Bzip2InputStream.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

streamEndMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected