MCPcopy Create free account
hub / github.com/apache/fory / write_f16

Method write_f16

rust/fory-core/src/buffer.rs:405–407  ·  view source on GitHub ↗
(&mut self, value: float16)

Source from the content-addressed store, hash-verified

403 // ============ FLOAT16 (TypeId = 16) ============
404 #[inline(always)]
405 pub fn write_f16(&mut self, value: float16) {
406 self.write_u16(value.to_bits());
407 }
408
409 // ============ BFLOAT16 (TypeId = 18) ============
410 #[inline(always)]

Callers

nothing calls this directly

Calls 2

write_u16Method · 0.80
to_bitsMethod · 0.45

Tested by

no test coverage detected