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

Method Decode

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

Source from the content-addressed store, hash-verified

228 string_converter_(MakeStringConverter<T>(options)) {}
229
230 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
231 // XXX should quoted values be allowed at all?
232 TrimWhiteSpace(&data, &size);
233 if (ARROW_PREDICT_FALSE(!string_converter_.Convert(
234 concrete_type_, reinterpret_cast<const char*>(data), size, out))) {
235 return GenericConversionError(type_, data, size);
236 }
237 return Status::OK();
238 }
239
240 protected:
241 const T& concrete_type_;

Callers

nothing calls this directly

Calls 4

TrimWhiteSpaceFunction · 0.85
GenericConversionErrorFunction · 0.70
OKFunction · 0.50
ConvertMethod · 0.45

Tested by

no test coverage detected