Munmap v0.1.0

Source
Removes a virtual-memory mapping.

Package: MacOS

Signature

func Munmap(addr: *opaque, length: uint) -> int64;

Parameters

NameTypeDescription
addr*opaqueBase address of the range to unmap.
lengthuintNumber of bytes in the range.

Returns

int64 - 0 on success, or a negative errno value on failure.

After success, the unmapped range is invalid and must not be accessed.

See also

  • MacOS — the package overview
  • Mmap - create a mapping