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

Function encode_binary

arrow-json/src/writer/encoder.rs:465–471  ·  view source on GitHub ↗
(bytes: &[u8], out: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

463}
464
465fn encode_binary(bytes: &[u8], out: &mut Vec<u8>) {
466 out.push(b'"');
467 for byte in bytes {
468 write!(out, "{byte:02x}").unwrap();
469 }
470 out.push(b'"');
471}
472
473struct FieldEncoder<'a> {
474 field: FieldRef,

Callers 1

encodeMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected