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

Function write_char

arrow-json/src/reader/tape.rs:724–727  ·  view source on GitHub ↗

Writes `c` as UTF-8 to `out`

(c: char, out: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

722
723/// Writes `c` as UTF-8 to `out`
724fn write_char(c: char, out: &mut Vec<u8>) {
725 let mut t = [0; 4];
726 out.extend_from_slice(c.encode_utf8(&mut t).as_bytes());
727}
728
729/// Evaluates to true if `b` is a valid JSON whitespace character
730#[inline]

Callers 1

decodeMethod · 0.85

Calls 2

extend_from_sliceMethod · 0.80
as_bytesMethod · 0.45

Tested by

no test coverage detected