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

Method Decode

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

Source from the content-addressed store, hash-verified

160 byte_width_(checked_cast<const FixedSizeBinaryType&>(*type).byte_width()) {}
161
162 Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) {
163 if (ARROW_PREDICT_FALSE(size != byte_width_)) {
164 return Status::Invalid("CSV conversion error to ", type_->ToString(), ": got a ",
165 size, "-byte long string");
166 }
167 *out = data;
168 return Status::OK();
169 }
170
171 protected:
172 const uint32_t byte_width_;

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected