MCPcopy Create free account
hub / github.com/apache/arrow-rs / write_bool

Function write_bool

arrow-avro/src/writer/encoder.rs:102–105  ·  view source on GitHub ↗
(out: &mut W, v: bool)

Source from the content-addressed store, hash-verified

100
101#[inline]
102fn write_bool<W: Write + ?Sized>(out: &mut W, v: bool) -> Result<(), AvroError> {
103 out.write_all(&[if v { 1 } else { 0 }])
104 .map_err(|e| AvroError::IoError(format!("write bool: {e}"), e))
105}
106
107/// Minimal two's-complement big-endian representation helper for Avro decimal (bytes).
108///

Callers 1

encodeMethod · 0.85

Calls 1

write_allMethod · 0.45

Tested by

no test coverage detected