| 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_; |