[#BloombergLP-bdls-MemoryUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::MemoryUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for platform&hyphen;independent memory manipulation utilities&period;

== Synopsis

Declared in `&lt;bdls&lowbar;memoryutil&period;h&gt;`

[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&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdls/MemoryUtil/allocate.adoc[`allocate`] 
| Allocate page&hyphen;aligned memory of the specified size&period;
| xref:BloombergLP/bdls/MemoryUtil/deallocate.adoc[`deallocate`] 
| Deallocate memory previously obtained from `allocate`&period;
| xref:BloombergLP/bdls/MemoryUtil/pageSize.adoc[`pageSize`] 
| Return the memory page size of the platform&period;
| xref:BloombergLP/bdls/MemoryUtil/protect.adoc[`protect`] 
| Change the access protection on a region of memory&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
