--------------------------------- MemoryPackage::GetEntryData This makes a copy of the data stored in the entry pointer
| 57 | // This makes a copy of the data stored in the entry pointer |
| 58 | // |
| 59 | bool MemoryPackage::GetEntryData(HashString const id, std::vector<uint8>& outData) |
| 60 | { |
| 61 | // try getting the file |
| 62 | PackageEntry const* pkgEntry = GetEntry(id); |
| 63 | if (pkgEntry == nullptr) |
| 64 | { |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | // return the content of the file |
| 69 | outData = std::move(std::vector<uint8>(pkgEntry->content, pkgEntry->content + pkgEntry->size)); |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | //--------------------------------- |
| 74 | // MemoryPackage::InitFileListFromData |
nothing calls this directly
no outgoing calls
no test coverage detected