| 373 | |
| 374 | |
| 375 | static la_ssize_t archiveWriteVectorCallback(struct archive* a, void* client_data, const void* buffer, size_t length) { |
| 376 | assert(client_data); |
| 377 | std::vector<uint8_t>& data = *((std::vector<uint8_t>*) client_data); |
| 378 | uint8_t* buf = (uint8_t*) buffer; |
| 379 | data.insert(data.end(), buf, buf + length); |
| 380 | return length; |
| 381 | } |
| 382 | |
| 383 | |
| 384 | static void archiveDirectory(const std::string& archivePath, std::vector<uint8_t>* archiveData, const std::string& dirPath, int compressionLevel) { |
nothing calls this directly
no outgoing calls
no test coverage detected