| 116 | } |
| 117 | |
| 118 | static void DFTStringAppendToVector(std::vector<uint8_t> *DFT, |
| 119 | const std::string &DFTString) { |
| 120 | assert(DFT->size() == DFTString.size()); |
| 121 | for (size_t I = 0, Len = DFT->size(); I < Len; I++) |
| 122 | (*DFT)[I] = DFTString[I] == '1'; |
| 123 | } |
| 124 | |
| 125 | // converts a string of '0' and '1' into a std::vector<uint8_t> |
| 126 | static std::vector<uint8_t> DFTStringToVector(const std::string &DFTString) { |
no test coverage detected