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)
| 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 | /// |
no test coverage detected