MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / write_f32

Method write_f32

crates/table/src/bflatn_to.rs:507–509  ·  view source on GitHub ↗

Write a `f32` to the fixed buffer and advance the `curr_offset`.

(&mut self, val: f32)

Source from the content-addressed store, hash-verified

505
506 /// Write a `f32` to the fixed buffer and advance the `curr_offset`.
507 fn write_f32(&mut self, val: f32) {
508 self.write_bytes(&val.to_le_bytes());
509 }
510
511 /// Write a `f64` to the fixed buffer and advance the `curr_offset`.
512 fn write_f64(&mut self, val: f64) {

Callers 1

write_valueMethod · 0.45

Calls 2

to_le_bytesMethod · 0.80
write_bytesMethod · 0.45

Tested by

no test coverage detected