Unmap the memory range starting at mappedMemory.

Synopsis

Declared in <bdls_fdstreambuf.h>

void
unmap(
    void* mappedMemory,
    std::streamoff length);

Description

Unmap the section of memory beginning at the specified mappedMemory, having the specified length. The behavior is undefined unless mappedMemory is an address returned by a previous call to the mmap method and length was the length specified in that call.

Parameters

Name

Description

mappedMemory

address previously returned by mmap

length

length in bytes of the mapped section

Created with MrDocs