logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

include/Zycore/API/Memory.h

Author

       Generated automatically by Doxygen for Zycore from the source code.

Zycore                                           Version 1.5.2.0                  include/Zycore/API/Memory.h(3)

Enumeration Type Documentation

enumZyanMemoryPageProtection_
       Defines the ZyanMemoryPageProtection enum.

Function Documentation

ZYCORE_EXPORTZyanU32ZyanMemoryGetSystemAllocationGranularity(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.

   ZYCORE_EXPORTZyanU32ZyanMemoryGetSystemPageSize(void)
       Returns the system page size.

       Returns
           The system page size.

   ZYCORE_EXPORTZyanStatusZyanMemoryVirtualFree(void*address,ZyanUSizesize)
       Releases one or more memory pages starting at the given address.

       Parametersaddress The start address aligned to a page boundary.
           size The size.

       Returns
           A zyan status code.

   ZYCORE_EXPORTZyanStatusZyanMemoryVirtualProtect(void*address,ZyanUSizesize,ZyanMemoryPageProtectionprotection)
       Changes the memory protection value of one or more pages.

       Parametersaddress The start address aligned to a page boundary.
           size The size.
           protection The new page protection value.

       Returns
           A zyan status code.

Name

       include/Zycore/API/Memory.h

Synopsis

       #include <Zycore/Defines.h>
       #include <Zycore/Status.h>
       #include <Zycore/Types.h>

   Typedefs
       typedef enum ZyanMemoryPageProtection_ZyanMemoryPageProtectionEnumerations
       enum ZyanMemoryPageProtection_FunctionsZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemPageSize (void)
       ZYCORE_EXPORT ZyanU32 ZyanMemoryGetSystemAllocationGranularity (void)
       ZYCORE_EXPORTZyanStatusZyanMemoryVirtualProtect (void *address, ZyanUSize size,
           ZyanMemoryPageProtection protection)
       ZYCORE_EXPORTZyanStatusZyanMemoryVirtualFree (void *address, ZyanUSize size)

Typedef Documentation

typedefenumZyanMemoryPageProtection_ZyanMemoryPageProtection
       Defines the ZyanMemoryPageProtection enum.

See Also