Lines Matching defs:buf
163 let buf = [
171 self.send(buf.as_slice()).await;
176 async fn send(&mut self, buf: &[u8]) {
177 hdc::debug!("channel send buf: {:#?}", buf);
178 let msg = [u32::to_be_bytes(buf.len() as u32).as_slice(), buf].concat();
183 hdc::debug!("channel recv buf");
282 let mut buf = [0_u8; 1];
285 while let Ok(bytes) = stdin.read(&mut buf).await {
286 self.send(&buf[..bytes]).await;
287 if buf[..bytes].contains(&0x4_u8) {