mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
includes/std: Added std::mem::reached() for use with while-sized arrays
This commit is contained in:
@@ -46,6 +46,15 @@ namespace auto std::mem {
|
|||||||
return $ >= (std::mem::base_address() + std::mem::size());
|
return $ >= (std::mem::base_address() + std::mem::size());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
Function that returns true if the cursor position is at or beyond the given address
|
||||||
|
@param address The address to compare against
|
||||||
|
@return True if the cursor is at or beyond the given address
|
||||||
|
*/
|
||||||
|
fn reached(u128 address) {
|
||||||
|
return $ >= address;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Aligns the given value to the given alignment
|
Aligns the given value to the given alignment
|
||||||
@param alignment The alignment to align to
|
@param alignment The alignment to align to
|
||||||
|
|||||||
Reference in New Issue
Block a user