# 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]

####
ⓘImportant traits for &'a [ u8 ]

### Important traits for &'a [ u8 ]

`impl<'a> Read for &'a [u8]impl<'a> Write for &'a mut [u8]`
`pub unsafe fn as_slice<'a>(&self, len: usize) -> &'a [T]`
[src]

####
ⓘImportant traits for &'a [ u8 ]

### Important traits for &'a [ u8 ]

`impl<'a> Read for &'a [u8]impl<'a> Write for &'a mut [u8]`
`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]

#### `fn as_mem(&self) -> &Mem`
[src]

### `impl<T: OclPrm> MemCmdRw for MemMap<T>`
[src]

### `impl<'a, T: OclPrm> MemCmdRw for &'a MemMap<T>`
[src]

### `impl<'a, T: OclPrm> MemCmdRw for &'a mut MemMap<T>`
[src]

### `impl<T: OclPrm> Send for MemMap<T>`
[src]

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)