(&mut self)
| 133 | #[async_trait::async_trait(?Send)] |
| 134 | impl<AR: AsyncRead + Unpin> FixedIntAsyncReader for AR { |
| 135 | async fn read_fixedint_async<FI: FixedInt>(&mut self) -> Result<FI> { |
| 136 | let mut buf = [0_u8; 8]; |
| 137 | self.read_exact(&mut buf[0..std::mem::size_of::<FI>()]) |
| 138 | .await?; |
| 139 | Ok(FI::decode_fixed(&buf[0..std::mem::size_of::<FI>()]).unwrap()) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | impl<R: Read> FixedIntReader for R { |
no outgoing calls
no test coverage detected