BloombergLP::bdls::FdStreamBuf_FileHandler::unmap

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

NameDescription
mappedMemoryaddress previously returned by mmap
lengthlength in bytes of the mapped section