diff -r fd948e5af26e -r 2cbdb482d325 docs/Writerside/topics/allocator.h.md --- a/docs/Writerside/topics/allocator.h.md Thu Dec 04 18:57:54 2025 +0100 +++ b/docs/Writerside/topics/allocator.h.md Fri Dec 05 16:11:39 2025 +0100 @@ -40,6 +40,8 @@ void cxFree(const CxAllocator *allocator, void *mem); +void cx_system_page_size(void); + void *cx_zalloc(size_t n); int cx_reallocate(void **mem, size_t n); @@ -105,6 +107,9 @@ > with the **same** allocator that was used to allocate the memory. {style="warning"} +The function `cx_system_page_size()` offers a cross-platform way to retrieve the memory page size in bytes. +If, for some reason, the page size cannot be determined, a default of 4096 bytes is returned. + ## Custom Allocator If you want to define your own allocator, you need to initialize the `CxAllocator` structure