Go to the source code of this file.
◆ ZyanMemoryPageProtection
Defines the ZyanMemoryPageProtection
enum.
◆ ZyanMemoryPageProtection_
Defines the ZyanMemoryPageProtection
enum.
◆ ZyanMemoryGetSystemAllocationGranularity()
ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemAllocationGranularity |
( |
void |
| ) |
|
Returns the system allocation granularity.
The system allocation granularity specifies the minimum amount of bytes which can be allocated at a specific address by a single call of ZyanMemoryVirtualAlloc
.
This value is typically 64KiB on Windows systems and equal to the page size on most POSIX platforms.
- Returns
- The system allocation granularity.
◆ ZyanMemoryGetSystemPageSize()
Returns the system page size.
- Returns
- The system page size.
◆ ZyanMemoryVirtualFree()
Releases one or more memory pages starting at the given address.
- Parameters
-
address | The start address aligned to a page boundary. |
size | The size. |
- Returns
- A zyan status code.
◆ ZyanMemoryVirtualProtect()
Changes the memory protection value of one or more pages.
- Parameters
-
address | The start address aligned to a page boundary. |
size | The size. |
protection | The new page protection value. |
- Returns
- A zyan status code.