[#BloombergLP-bdls-FdStreamBuf_FileHandler-mmap]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf&lowbar;FileHandler]::mmap
:relfileprefix: ../../../
:mrdocs:

Map to memory a section of the file starting at the specified `offset` from the start of the file and return a pointer to that memory&period; The section mapped is to be of the specified `length`&period; The behavior is undefined unless `offset` is a multiple of `pageSize`&period; Note that the memory is mapped for readonly access&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
mmap(
    std::streamoff offset,
    std::streamoff length);
----


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