MCPcopy Create free account
hub / github.com/HexHive/NASS / DFTStringAppendToVector

Function DFTStringAppendToVector

fuzz/libfuzzer/FuzzerDataFlowTrace.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static 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>
126static std::vector<uint8_t> DFTStringToVector(const std::string &DFTString) {

Callers 1

DFTStringToVectorFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected