(out: &mut W, v: bool)
| 100 | |
| 101 | #[inline] |
| 102 | fn 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 | /// |