src/cx/allocator.h

changeset 1539
2cbdb482d325
parent 1431
1ec36e652e57
--- a/src/cx/allocator.h	Thu Dec 04 18:57:54 2025 +0100
+++ b/src/cx/allocator.h	Fri Dec 05 16:11:39 2025 +0100
@@ -146,6 +146,17 @@
                              const CxAllocator *allocator, void *data);
 
 /**
+ * Returns the system's memory page size.
+ *
+ * If the page size cannot be retrieved from the system,
+ * a default of 4096 bytes is assumed.
+ *
+ * @return the system's memory page size in bytes
+ */
+cx_attr_nodiscard
+CX_EXPORT unsigned long cx_system_page_size(void);
+
+/**
  * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  *

mercurial