Exemplo n.º 1
0
				uint64_t serialise(std::ostream & out) const
				{
					uint64_t offset = 0;

					putLittleEndianInteger4(out,ureads,offset);
					putLittleEndianInteger4(out,treads,offset);
					putLittleEndianInteger4(out,cutoff,offset);
					putLittleEndianInteger4(out,all,offset);

					for ( size_t i = 0; i < sizeof(freq)/sizeof(freq[0]); ++i )
						putFloat(out,freq[i],offset);

					putLittleEndianInteger4(out,maxlen,offset);
					putLittleEndianInteger8(out,totlen,offset);
					putLittleEndianInteger4(out,nreads,offset);
					putLittleEndianInteger4(out,trimmed,offset);

					putLittleEndianInteger4(out,0,offset); // part
					putLittleEndianInteger4(out,0,offset); // ufirst
					putLittleEndianInteger4(out,0,offset); // tfirst

					putLittleEndianInteger8(out,0,offset); // path
					putLittleEndianInteger4(out,0,offset); // loaded
					putLittleEndianInteger8(out,0,offset); // bases
					putLittleEndianInteger8(out,0,offset); // reads
					putLittleEndianInteger8(out,0,offset); // tracks

					return offset;
				}
Exemplo n.º 2
0
				static uint64_t serialiseHeader(std::ostream & out, int64_t const novl, int32_t const tspace)
				{
					uint64_t offset = 0;
					putLittleEndianInteger8(out,novl,offset);
					putLittleEndianInteger4(out,tspace,offset);
					return offset;
				}