diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-04-02 08:32:39 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-04-02 09:00:56 -0600 |
| commit | 3eebd9d5aaeef4adfa62d95cd6f4f60b917a48c2 (patch) | |
| tree | f6bf05a1e5a81bf254662484ada4ee90d4f1c3e9 /src/utils/Decompressor.cpp | |
| parent | 4e53fac09cd92ddad447d4f73dc828d90537622d (diff) | |
Removed header, values and indices with just offset
Diffstat (limited to 'src/utils/Decompressor.cpp')
| -rw-r--r-- | src/utils/Decompressor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/Decompressor.cpp b/src/utils/Decompressor.cpp index 0fc806e..9570ab3 100644 --- a/src/utils/Decompressor.cpp +++ b/src/utils/Decompressor.cpp @@ -78,6 +78,13 @@ DecompressedData Decompressor::AutoDecode(YAML::Node& node, std::vector<uint8_t> throw std::runtime_error("Auto decode could not find a compression type nor uncompressed segment.\nThis is one of those issues that should never really happen."); } +DecompressedData Decompressor::AutoDecode(uint32_t offset, std::optional<size_t> size, std::vector<uint8_t>& buffer) { + YAML::Node node; + node["offset"] = offset; + + return AutoDecode(node, buffer, size); +} + uint32_t Decompressor::TranslateAddr(uint32_t addr, bool baseAddress){ if(IS_SEGMENTED(addr)){ const auto segment = Companion::Instance->GetFileOffsetFromSegmentedAddr(SEGMENT_NUMBER(addr)); |
