# Function ocl_core::enqueue_map_buffer [−] [src]

    pub unsafe fn enqueue_map_buffer<T, M, En, Ewl>(
        command_queue: &CommandQueue,
        buffer: M,
        block: bool,
        map_flags: MapFlags,
        offset: usize,
        len: usize,
        wait_list: Option<Ewl>,
        new_event: Option<En>
    ) -> OclCoreResult<MemMap<T>> where
        T: OclPrm,
        En: ClNullEventPtr,
        Ewl: ClWaitListPtr,
        M: AsMem<T> + MemCmdAll,

Enqueues a command to map a region of the buffer object given by `buffer` into the host address space and returns a pointer to this mapped region.

SDK Docs

## Safety

Caller must ensure that the returned pointer is not used until the map is complete. Use `new_event` to monitor it. It also must be ensured that memory referred to by the returned pointer is not dropped, reused, or otherwise interfered with until `enqueue_unmap_mem_object` is called.

# 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`)