MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / device_ptr

Method device_ptr

src/core/array.rs:647–652  ·  view source on GitHub ↗

Get the device pointer and lock the buffer in memory manager The device pointer is not freed by memory manager until unlock is called.

(&self)

Source from the content-addressed store, hash-verified

645 ///
646 /// The device pointer is not freed by memory manager until unlock is called.
647 pub unsafe fn device_ptr(&self) -> void_ptr {
648 let mut temp: void_ptr = std::ptr::null_mut();
649 let err_val = af_get_device_ptr(&mut temp as *mut void_ptr, self.handle);
650 HANDLE_ERROR(AfError::from(err_val));
651 temp
652 }
653
654 /// Get the size of physical allocated bytes.
655 ///

Callers 4

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

HANDLE_ERRORFunction · 0.85

Tested by

no test coverage detected