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

Function large_binary_encoder

arrow-avro/src/writer/encoder.rs:2497–2506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2495
2496 #[test]
2497 fn large_binary_encoder() {
2498 let values: Vec<&[u8]> = vec![b"xyz", b""];
2499 let arr = LargeBinaryArray::from_vec(values);
2500 let mut expected = Vec::new();
2501 for payload in [b"xyz" as &[u8], b""] {
2502 expected.extend(avro_len_prefixed_bytes(payload));
2503 }
2504 let got = encode_all(&arr, &FieldPlan::Scalar, None);
2505 assert_bytes_eq(&got, &expected);
2506 }
2507
2508 #[test]
2509 fn utf8_encoder() {

Callers

nothing calls this directly

Calls 4

avro_len_prefixed_bytesFunction · 0.85
encode_allFunction · 0.85
assert_bytes_eqFunction · 0.85
extendMethod · 0.45

Tested by

no test coverage detected