Struct ami::UnsafeData
[−]
[src]
pub struct UnsafeData(_);
An unsafe wrapper around a Void pointer.
Methods
impl UnsafeData
[src]
unsafe fn new<T>(pointer: *mut T) -> UnsafeData
Create UnsafeData from a raw pointer.
fn as_ptr<T>(&self) -> *const T
Get a raw pointer from UnsafeData.
fn as_mut_ptr<T>(&mut self) -> *mut T
Get an unsafe mutable raw pointer from UnsafeData.
unsafe fn as_slice<T>(&mut self, len: usize) -> &mut [T]
Get a slice from UnsafeData.