MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decode_float

Function decode_float

src/avro/src/decode.rs:90–94  ·  view source on GitHub ↗
(reader: &mut R)

Source from the content-addressed store, hash-verified

88
89#[inline]
90fn 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]
97fn decode_double<R: Read>(reader: &mut R) -> Result<f64, AvroError> {

Callers 1

deserializeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected