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

Function write_nil

src/encode.rs:156–160  ·  view source on GitHub ↗

Encodes and attempts to write a nil value into the given write. According to the MessagePack specification, a nil value is represented as a single `0xc0` byte. # Errors This function will return `FixedValueWriteError` on any I/O error occurred while writing the nil marker.

(wr: &mut W)

Source from the content-addressed store, hash-verified

154/// This function will return `FixedValueWriteError` on any I/O error occurred while writing the nil
155/// marker.
156pub fn write_nil<W>(wr: &mut W) -> Result<(), FixedValueWriteError>
157 where W: Write
158{
159 write_fixval(wr, Marker::Null)
160}
161
162/// Encodes and attempts to write a bool value into the given write.
163///

Callers 6

write_valueFunction · 0.85
emit_nilMethod · 0.85
visit_unitMethod · 0.85
write_value_refFunction · 0.85
pass_packFunction · 0.85

Calls 1

write_fixvalFunction · 0.85

Tested by 2

pass_packFunction · 0.68