| 756 | |
| 757 | template <typename ListViewType> |
| 758 | Status ValidateListView(const ListViewType& type) { |
| 759 | const ArrayData& values = *data.child_data[0]; |
| 760 | const Status child_valid = RecurseInto(values); |
| 761 | if (!child_valid.ok()) { |
| 762 | return Status::Invalid("List-view child array is invalid: ", |
| 763 | child_valid.ToString()); |
| 764 | } |
| 765 | // For list-views, sizes are validated together with offsets. |
| 766 | return ValidateOffsetsAndSizes(type, /*offset_limit=*/values.length); |
| 767 | } |
| 768 | |
| 769 | template <typename RunEndCType> |
| 770 | Status ValidateRunEndEncoded(const RunEndEncodedType& type) { |