pub unsafe fn create_buffer<C, T>(
context: C,
flags: MemFlags,
len: usize,
data: Option<&[T]>,
) -> Result<Mem>where
C: ClContextPtr,
T: OclPrm,Expand description
Returns a new buffer pointer with size (bytes): len * sizeof(T).
ยงSafety
The caller must ensure that correct and appropriate flags are being
used.