fn write_host_buffer(&mut self, data: CLValue) -> Result<(), ApiError> {
        match self.host_buffer {
            Some(_) => return Err(ApiError::HostBufferFull),
            None => self.host_buffer = Some(data),
        }
        Ok(())
    }
/// Overwrites data in host buffer only if it's in empty state
Overwrites data in host buffer only if it's in empty state
Overwrites data in host buffer only if it ' s in empty state
fn write_host_buffer(&mut self, data: CLValue) -> Result<(), ApiError> {
        match self.host_buffer {
            Some(_) => return Err(ApiError::HostBufferFull),
            None => self.host_buffer = Some(data),
        }
        Ok(())
    }
fn write_host_buffer ( & mut self , data : CLValue ) -> Result < ( ) , ApiError > { match self . host_buffer { Some ( _ ) => return Err ( ApiError :: HostBufferFull ) , None => self . host_buffer = Some ( data ) , } Ok ( ( ) ) }
Overwrites data in host buffer only if it's in empty state
Overwrites data in host buffer only if it ' s in empty state
&mut self
data
CLValue
&mut self
data
CLValue