mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
includes/hex: SectionId -> Section
This commit is contained in:
@@ -23,42 +23,42 @@ namespace hex::dec {
|
|||||||
/**
|
/**
|
||||||
Decompresses the bytes of a pattern into a section using the zlib algorithm
|
Decompresses the bytes of a pattern into a section using the zlib algorithm
|
||||||
@param pattern The pattern whose bytes should be decompressed
|
@param pattern The pattern whose bytes should be decompressed
|
||||||
@param sectionId The section to decompress the data into
|
@param section The section to decompress the data into
|
||||||
@param window_size The window size passed to zlib
|
@param window_size The window size passed to zlib
|
||||||
@return true if successful, false otherwise
|
@return true if successful, false otherwise
|
||||||
*/
|
*/
|
||||||
fn zlib_decompress(ref auto pattern, std::mem::SectionId sectionId, u64 window_size = 0) {
|
fn zlib_decompress(ref auto pattern, std::mem::Section section, u64 window_size = 0) {
|
||||||
return builtin::hex::dec::zlib_decompress(pattern, sectionId, window_size);
|
return builtin::hex::dec::zlib_decompress(pattern, section, window_size);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Decompresses the bytes of a pattern into a section using the bzip algorithm
|
Decompresses the bytes of a pattern into a section using the bzip algorithm
|
||||||
@param pattern The pattern whose bytes should be decompressed
|
@param pattern The pattern whose bytes should be decompressed
|
||||||
@param sectionId The section to decompress the data into
|
@param section The section to decompress the data into
|
||||||
@return true if successful, false otherwise
|
@return true if successful, false otherwise
|
||||||
*/
|
*/
|
||||||
fn bzip_decompress(ref auto pattern, std::mem::SectionId sectionId) {
|
fn bzip_decompress(ref auto pattern, std::mem::Section section) {
|
||||||
return builtin::hex::dec::bzip_decompress(pattern, sectionId);
|
return builtin::hex::dec::bzip_decompress(pattern, section);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Decompresses the bytes of a pattern into a section using the LZMA algorithm
|
Decompresses the bytes of a pattern into a section using the LZMA algorithm
|
||||||
@param pattern The pattern whose bytes should be decompressed
|
@param pattern The pattern whose bytes should be decompressed
|
||||||
@param sectionId The section to decompress the data into
|
@param section The section to decompress the data into
|
||||||
@return true if successful, false otherwise
|
@return true if successful, false otherwise
|
||||||
*/
|
*/
|
||||||
fn lzma_decompress(ref auto pattern, std::mem::SectionId sectionId) {
|
fn lzma_decompress(ref auto pattern, std::mem::Section section) {
|
||||||
return builtin::hex::dec::lzma_decompress(pattern, sectionId);
|
return builtin::hex::dec::lzma_decompress(pattern, section);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Decompresses the bytes of a pattern into a section using the zstd algorithm
|
Decompresses the bytes of a pattern into a section using the zstd algorithm
|
||||||
@param pattern The pattern whose bytes should be decompressed
|
@param pattern The pattern whose bytes should be decompressed
|
||||||
@param sectionId The section to decompress the data into
|
@param section The section to decompress the data into
|
||||||
@return true if successful, false otherwise
|
@return true if successful, false otherwise
|
||||||
*/
|
*/
|
||||||
fn zstd_decompress(ref auto pattern, std::mem::SectionId sectionId) {
|
fn zstd_decompress(ref auto pattern, std::mem::Section section) {
|
||||||
return builtin::hex::dec::zstd_decompress(pattern, sectionId);
|
return builtin::hex::dec::zstd_decompress(pattern, section);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user