BloombergLP::bdls::FilesystemUtil::unmap

Unmap the memory mapping with the specified address and size.

Synopsis

Declared in <bdls_filesystemutil.h>

static
int
unmap(
    void* address,
    std::size_t size);

Description

Return 0 on success, and a non-zero value otherwise. The behavior is undefined unless this area with address and size was previously mapped with a map call.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
addressbase address of the mapping to unmap
sizelength in bytes of the mapping to unmap