Example #1
0
	void Write(std::ostream &bwtOut) {
		bwtSequence.Write(bwtOut);
		bwtOut.write((char*)charCount, sizeof(DNALength)*CharCountSize);
		bwtOut.write((char*)&firstCharPos, sizeof(DNALength));
		bwtOut.write((char*)&useDebugData, sizeof(useDebugData));
		if (useDebugData) {
			bwtOut.write((char*)&saCopy[0], (bwtSequence.length-1) * sizeof(DNALength));
		}
		occ.Write(bwtOut);
		pos.Write(bwtOut);
	}