|
Zycore 1.5.2
Zyan Core Library for C
|
Go to the source code of this file.
Typedefs | |
| typedef enum ZyanMemoryPageProtection_ | ZyanMemoryPageProtection |
| Defines the ZyanMemoryPageProtection enum. | |
Enumerations | |
| enum | ZyanMemoryPageProtection_ |
| Defines the ZyanMemoryPageProtection enum. More... | |
Functions | |
| ZYCORE_EXPORT ZyanU32 | ZyanMemoryGetSystemPageSize (void) |
| Returns the system page size. | |
| ZYCORE_EXPORT ZyanU32 | ZyanMemoryGetSystemAllocationGranularity (void) |
| Returns the system allocation granularity. | |
| ZYCORE_EXPORT ZyanStatus | ZyanMemoryVirtualProtect (void *address, ZyanUSize size, ZyanMemoryPageProtection protection) |
| Changes the memory protection value of one or more pages. | |
| ZYCORE_EXPORT ZyanStatus | ZyanMemoryVirtualFree (void *address, ZyanUSize size) |
| Releases one or more memory pages starting at the given address. | |
| typedef enum ZyanMemoryPageProtection_ ZyanMemoryPageProtection |
Defines the ZyanMemoryPageProtection enum.
Defines the ZyanMemoryPageProtection enum.
| 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.
| ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemPageSize | ( | void | ) |
Returns the system page size.
| ZYCORE_EXPORT ZyanStatus ZyanMemoryVirtualFree | ( | void * | address, |
| ZyanUSize | size ) |
Releases one or more memory pages starting at the given address.
| address | The start address aligned to a page boundary. |
| size | The size. |
| ZYCORE_EXPORT ZyanStatus ZyanMemoryVirtualProtect | ( | void * | address, |
| ZyanUSize | size, | ||
| ZyanMemoryPageProtection | protection ) |
Changes the memory protection value of one or more pages.
| address | The start address aligned to a page boundary. |
| size | The size. |
| protection | The new page protection value. |