MCPcopy Create free account
hub / github.com/3Hren/msgpack-rust / write_f64

Function write_f64

src/encode.rs:606–611  ·  view source on GitHub ↗

Encodes and attempts to write an `f64` value as a 9-byte sequence into the given write. The first byte becomes the `f64` marker and the others will represent the data itself. # Errors This function will return `ValueWriteError` on any I/O error occurred while writing either the marker or the data, except the EINTR, which is handled internally.

(wr: &mut W, val: f64)

Source from the content-addressed store, hash-verified

604/// This function will return `ValueWriteError` on any I/O error occurred while writing either the
605/// marker or the data, except the EINTR, which is handled internally.
606pub fn write_f64<W>(wr: &mut W, val: f64) -> Result<(), ValueWriteError>
607 where W: Write
608{
609 try!(write_marker(wr, Marker::F64));
610 write_data_f64(wr, val)
611}
612
613/// Encodes and attempts to write the most efficient string length implementation to the given
614/// write, returning the marker used.

Callers 5

write_valueFunction · 0.85
emit_f64Method · 0.85
visit_f64Method · 0.85
write_value_refFunction · 0.85
pass_pack_f64Function · 0.85

Calls 1

write_markerFunction · 0.85

Tested by 1

pass_pack_f64Function · 0.68