Struct ocl_core::types::abs::MemMap
[−]
[src]
#[repr(C)]pub struct MemMap<T>(_);
A pointer to a region of mapped (pinned) memory.
Methods
impl<T: OclPrm> MemMap<T>
[src]
unsafe fn from_raw(ptr: *mut T) -> MemMap<T>
Only call this when passing the original newly created pointer
directly from clCreate...
. Do not use this to clone or copy.
fn as_ptr(&self) -> *const T
fn as_mut_ptr(&mut self) -> *mut T
fn as_void_ptr(&self) -> *mut c_void
unsafe fn as_slice<'a>(&self, len: usize) -> &'a [T]
unsafe fn as_slice_mut<'a>(&mut self, len: usize) -> &'a mut [T]
Trait Implementations
impl<T: Debug> Debug for MemMap<T>
[src]
impl<T> AsMem<T> for MemMap<T> where
T: OclPrm,
[src]
T: OclPrm,