| 378 | } |
| 379 | |
| 380 | uint8_t Kmer::rightShiftByte(char* pSeq, |
| 381 | unsigned byteNum, unsigned index, uint8_t base) |
| 382 | { |
| 383 | // save the last base |
| 384 | uint8_t outBase = pSeq[byteNum] & 0x3; |
| 385 | |
| 386 | // shift right one position |
| 387 | pSeq[byteNum] >>= 2; |
| 388 | |
| 389 | // add the new base |
| 390 | setBaseCode(pSeq, byteNum, index, base); |
| 391 | |
| 392 | return outBase; |
| 393 | } |
| 394 | |
| 395 | //Set a base by byte number/ sub index |
| 396 | // beware, this does not check for out of bounds access |
nothing calls this directly
no test coverage detected