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

Function make_i32_buffer

arrow-data/src/data.rs:2295–2297  ·  view source on GitHub ↗

returns a buffer initialized with some constant value for tests

(n: usize)

Source from the content-addressed store, hash-verified

2293
2294 /// returns a buffer initialized with some constant value for tests
2295 fn make_i32_buffer(n: usize) -> Buffer {
2296 Buffer::from_slice_ref(vec![42i32; n])
2297 }
2298
2299 /// returns a buffer initialized with some constant value for tests
2300 fn make_f32_buffer(n: usize) -> Buffer {

Callers 6

test_null_countFunction · 0.70
test_null_buffer_refFunction · 0.70
test_sliceFunction · 0.70
test_equalityFunction · 0.70
test_slice_memory_sizeFunction · 0.70

Calls

no outgoing calls

Tested by 6

test_null_countFunction · 0.56
test_null_buffer_refFunction · 0.56
test_sliceFunction · 0.56
test_equalityFunction · 0.56
test_slice_memory_sizeFunction · 0.56