Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-arrow/src/io/ipc/write/serialize/boolean.rs
6940 views
1
use super::*;
2
3
pub(super) fn write_boolean(
4
array: &BooleanArray,
5
buffers: &mut Vec<ipc::Buffer>,
6
arrow_data: &mut Vec<u8>,
7
offset: &mut i64,
8
_: bool,
9
compression: Option<Compression>,
10
) {
11
write_bitmap(
12
array.validity(),
13
array.len(),
14
buffers,
15
arrow_data,
16
offset,
17
compression,
18
);
19
write_bitmap(
20
Some(&array.values().clone()),
21
array.len(),
22
buffers,
23
arrow_data,
24
offset,
25
compression,
26
);
27
}
28
29