MCPcopy Create free account
hub / github.com/influxdata/influxdb / new_empty

Method new_empty

core/arrow_util/src/string.rs:35–40  ·  view source on GitHub ↗
(len: usize)

Source from the content-addressed store, hash-verified

33 }
34
35 pub fn new_empty(len: usize) -> Self {
36 Self {
37 offsets: vec![K::zero(); len + 1],
38 storage: String::new(),
39 }
40 }
41
42 pub fn with_capacity(keys: usize, values: usize) -> Self {
43 let mut offsets = Vec::with_capacity(keys + 1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected