#include "sequence_store.h" extern "C" { #include #include } #include namespace Sequence { constexpr KDColor SequenceStore::k_defaultColors[k_maxNumberOfSequences]; constexpr const char * SequenceStore::k_sequenceNames[k_maxNumberOfSequences]; uint32_t SequenceStore::storeChecksum() { size_t dataLengthInBytes = k_maxNumberOfSequences*sizeof(uint32_t); assert((dataLengthInBytes & 0x3) == 0); // Assert that dataLengthInBytes is a multiple of 4 uint32_t checksums[k_maxNumberOfSequences]; for (int i = 0; i < k_maxNumberOfSequences; i++) { checksums[i] = m_sequences[i].checksum(); } return Ion::crc32((uint32_t *)checksums, dataLengthInBytes/sizeof(uint32_t)); } Sequence * SequenceStore::functionAtIndex(int i) { assert(i>=0 && i=0 && i