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

Method clear

arrow-csv/src/reader/records.rs:184–189  ·  view source on GitHub ↗

Clears the current contents of the decoder

(&mut self)

Source from the content-addressed store, hash-verified

182
183 /// Clears the current contents of the decoder
184 pub fn clear(&mut self) {
185 // This does not reset current_field to allow clearing part way through a record
186 self.offsets_len = 1;
187 self.data_len = 0;
188 self.num_rows = 0;
189 }
190
191 /// Flushes the current contents of the reader
192 pub fn flush(&mut self) -> Result<StringRecords<'_>, ArrowError> {

Callers 4

value_to_string_viewFunction · 0.45
writeMethod · 0.45
decodeMethod · 0.45
test_invalid_fieldsFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_invalid_fieldsFunction · 0.36