MCPcopy Create free account
hub / github.com/apache/arrow / Decode

Method Decode

cpp/src/arrow/csv/converter.cc:333–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 }
332
333 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
334 if (ARROW_PREDICT_FALSE(size > temp_.size())) {
335 temp_.resize(size);
336 }
337 uint8_t* temp_data = temp_.data();
338 for (uint32_t i = 0; i < size; ++i) {
339 temp_data[i] = mapping_[data[i]];
340 }
341 if (ARROW_PREDICT_FALSE(
342 !wrapped_decoder_.Decode(temp_data, size, quoted, out).ok())) {
343 return GenericConversionError(type_, data, size);
344 }
345 return Status::OK();
346 }
347
348 bool IsNull(const uint8_t* data, uint32_t size, bool quoted) {
349 return wrapped_decoder_.IsNull(data, size, quoted);

Callers

nothing calls this directly

Calls 7

resizeMethod · 0.80
GenericConversionErrorFunction · 0.70
OKFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45
okMethod · 0.45
DecodeMethod · 0.45

Tested by

no test coverage detected