pdfparser::PdfDetach currently returns a vector of the discovered buffers as such: std::vector<std::vector>. I need that changed in to a set of key/value pairs where the key is the name of the file that is embedded and the value is the relevant buffer (what gets returned in the current code base). So what we need returned is something like:
std::map<std::pair<string,uint8_t>>
Where the pair is the file name as the key (string) and the content buffer is the value (uint8_t) and the map holds as many of these pairs that have been discovered.
pdfparser::PdfDetach currently returns a vector of the discovered buffers as such: std::vector<std::vector>. I need that changed in to a set of key/value pairs where the key is the name of the file that is embedded and the value is the relevant buffer (what gets returned in the current code base). So what we need returned is something like:
std::map<std::pair<string,uint8_t>>
Where the pair is the file name as the key (string) and the content buffer is the value (uint8_t) and the map holds as many of these pairs that have been discovered.