예제 #1
0
				void flush()
				{
					if ( Pstream )
					{
						Pstream->seekp(0,std::ios::beg);
						uint64_t offset = 0;
						libmaus2::dazzler::db::OutputBase::putLittleEndianInteger8(*Pstream,novl,offset);

						Pstream->flush();
						Pstream.reset();
					}	
				}
예제 #2
0
				~AlignmentWriter()
				{
					if ( novl != novlexptd )
					{
						DOSI.seekp(0,std::ios::beg);
						libmaus2::dazzler::align::AlignmentFile::serialiseHeader(DOSI,novl,tspace);
						DOSI.seekp(dpos,std::ios::beg);
					}
				
					if ( PEMIG )
					{
						PEMIG->flush();
						PEMIG.reset();
					}
					
					if ( PIOSI )
					{
						PIOSI->flush();
						PIOSI.reset();
					}
					DOSI.flush();
					PDOSI.reset();
				}