docs/Writerside/topics/allocator.h.md

changeset 1539
2cbdb482d325
parent 1446
5732947cbcc2
--- 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

mercurial