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

Method Decode

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

Source from the content-addressed store, hash-verified

188 }
189
190 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
191 if (CheckUTF8 && ARROW_PREDICT_FALSE(!util::ValidateUTF8Inline(data, size))) {
192 return Status::Invalid("CSV conversion error to ", type_->ToString(),
193 ": invalid UTF8 data");
194 }
195 *out = {reinterpret_cast<const char*>(data), size};
196 return Status::OK();
197 }
198
199 bool IsNull(const uint8_t* data, uint32_t size, bool quoted) {
200 return options_.strings_can_be_null &&

Callers 3

DecodeMethod · 0.45
ConvertMethod · 0.45
ConvertMethod · 0.45

Calls 4

ValidateUTF8InlineFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected