[#BloombergLP-bdls-MemoryUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::MemoryUtil :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for platform‐independent memory manipulation utilities. == Synopsis Declared in `<bdls_memoryutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct MemoryUtil; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdls/MemoryUtil/Access.adoc[`Access`] | Bit flags specifying memory access protection. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdls/MemoryUtil/allocate.adoc[`allocate`] | Allocate page‐aligned memory of the specified size. | xref:BloombergLP/bdls/MemoryUtil/deallocate.adoc[`deallocate`] | Deallocate memory previously obtained from `allocate`. | xref:BloombergLP/bdls/MemoryUtil/pageSize.adoc[`pageSize`] | Return the memory page size of the platform. | xref:BloombergLP/bdls/MemoryUtil/protect.adoc[`protect`] | Change the access protection on a region of memory. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#