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

Function encode_empty

arrow-row/src/variable.rs:141–147  ·  view source on GitHub ↗
(out: &mut [u8], opts: SortOptions)

Source from the content-addressed store, hash-verified

139}
140
141pub fn encode_empty(out: &mut [u8], opts: SortOptions) -> usize {
142 out[0] = match opts.descending {
143 true => !EMPTY_SENTINEL,
144 false => EMPTY_SENTINEL,
145 };
146 1
147}
148
149/// Ensure `NullArray`s don't get encoded as empty lists which can lose their length
150pub fn encode_null_value(out: &mut [u8], opts: SortOptions) -> usize {

Callers 2

encode_oneFunction · 0.85
encode_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected