(reader: &mut R)
| 88 | |
| 89 | #[inline] |
| 90 | fn decode_float<R: Read>(reader: &mut R) -> Result<f32, AvroError> { |
| 91 | let mut buf = [0u8; 4]; |
| 92 | reader.read_exact(&mut buf[..])?; |
| 93 | Ok(f32::from_le_bytes(buf)) |
| 94 | } |
| 95 | |
| 96 | #[inline] |
| 97 | fn decode_double<R: Read>(reader: &mut R) -> Result<f64, AvroError> { |