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]
pub unsafe fn from_raw(ptr: *mut T) -> MemMap<T>
[src]
Only call this when passing the original newly created pointer
directly from clCreate...
. Do not use this to clone or copy.
pub fn as_ptr(&self) -> *const T
[src]
pub fn as_mut_ptr(&mut self) -> *mut T
[src]
pub fn as_void_ptr(&self) -> *mut c_void
[src]
pub unsafe fn as_slice<'a>(&self, len: usize) -> &'a [T]
[src]
pub unsafe fn as_slice_mut<'a>(&mut self, len: usize) -> &'a mut [T]
[src]
Trait Implementations
impl<T: Debug> Debug for MemMap<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> AsMem<T> for MemMap<T> where
T: OclPrm,
[src]
T: OclPrm,