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

Method setPosition

src/openms/source/FORMAT/FASTAFile.cpp:187–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 bool FASTAFile::setPosition(const std::streampos &pos)
188 {
189 if (pos <= fileSize_)
190 {
191 infile_.clear(); // when end of file is reached, otherwise it gets -1
192 infile_.seekg(pos);
193 return true;
194 }
195 return false;
196 }
197
198 bool FASTAFile::atEnd()
199 {

Callers 15

main_Method · 0.45
buildAmbiguityGroupMethod · 0.45
preprocessMethod · 0.45
startElementMethod · 0.45
getRegionEndpoints_Method · 0.45
runMethod · 0.45
MBBeginMethod · 0.45
MBEndMethod · 0.45
MZEndMethod · 0.45
MZBeginMethod · 0.45
RTBeginMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by 5

main_Method · 0.36
preprocessMethod · 0.36
MZEndMethod · 0.36
MZBeginMethod · 0.36