Function nvcvAllocatorSetUserPointer

Function Documentation

NVCVStatus nvcvAllocatorSetUserPointer(NVCVAllocatorHandle handle, void *userPtr)

Associates a user pointer to the allocator handle.

This pointer can be used to associate any kind of data with the allocator object.

Parameters:
  • handle[in] Allocator to be associated with the user pointer.

  • userPtr[in] User pointer.

Return values:
  • NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside valid range.

  • NVCV_SUCCESS – Operation executed successfully.