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

Function encode_string

arrow-json/src/writer/encoder.rs:460–463  ·  view source on GitHub ↗
(s: &str, out: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

458}
459
460fn encode_string(s: &str, out: &mut Vec<u8>) {
461 let mut serializer = serde_json::Serializer::new(out);
462 serializer.serialize_str(s).unwrap();
463}
464
465fn encode_binary(bytes: &[u8], out: &mut Vec<u8>) {
466 out.push(b'"');

Callers 1

encodeMethod · 0.70

Calls 1

serialize_strMethod · 0.80

Tested by

no test coverage detected