| 855 | |
| 856 | template <typename offset_type> |
| 857 | Status OutOfBoundsListViewOffset(int64_t slot, int64_t offset_limit) { |
| 858 | const auto* offsets = data.GetValues<offset_type>(1); |
| 859 | const auto offset = offsets[slot]; |
| 860 | return Status::Invalid("Offset invariant failure: offset for slot ", slot, |
| 861 | " out of bounds. Expected ", offset, |
| 862 | " to be at least 0 and less than ", offset_limit); |
| 863 | } |
| 864 | |
| 865 | template <typename offset_type> |
| 866 | Status OutOfBoundsListViewSize(int64_t slot, int64_t offset_limit) { |