Function gdal_sys::CPLVirtualMemGetAddr[][src]

pub unsafe extern "C" fn CPLVirtualMemGetAddr(
    ctxt: *mut CPLVirtualMem
) -> *mut c_void

Return the pointer to the start of a virtual memory mapping.

The bytes in the range [p:p+CPLVirtualMemGetSize()-1] where p is the pointer returned by this function will be valid, until CPLVirtualMemFree() is called.

Note that if a range of bytes used as an argument of a system call (such as read() or write()) contains pages that have not been “realized”, the system call will fail with EFAULT. CPLVirtualMemPin() can be used to work around this issue.

@param ctxt context returned by CPLVirtualMemNew(). @return the pointer to the start of a virtual memory mapping.

@since GDAL 1.11