Function gdal_sys::CPLVirtualMemDerivedNew[][src]

pub unsafe extern "C" fn CPLVirtualMemDerivedNew(
    pVMemBase: *mut CPLVirtualMem,
    nOffset: vsi_l_offset,
    nSize: vsi_l_offset,
    pfnFreeUserData: CPLVirtualMemFreeUserData,
    pCbkUserData: *mut c_void
) -> *mut CPLVirtualMem

Create a new virtual memory mapping derived from an other virtual memory mapping.

This may be useful in case of creating mapping for pixel interleaved data.

The new mapping takes a reference on the base mapping.

@param pVMemBase Base virtual memory mapping @param nOffset Offset in the base virtual memory mapping from which to start the new mapping. @param nSize Size of the base virtual memory mapping to expose in the the new mapping. @param pfnFreeUserData callback that is called when the object is destroyed. @param pCbkUserData user data passed to pfnFreeUserData. @return a virtual memory object that must be freed by CPLVirtualMemFree(), or NULL in case of failure.

@since GDAL 1.11