MCPcopy Create free account
hub / github.com/VCVRack/Rack / archiveWriteVectorCallback

Function archiveWriteVectorCallback

src/system.cpp:375–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373
374
375static 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
384static void archiveDirectory(const std::string& archivePath, std::vector<uint8_t>* archiveData, const std::string& dirPath, int compressionLevel) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected