| 360 | |
| 361 | template <typename TYPE> |
| 362 | Status LoadList(const TYPE& type) { |
| 363 | DCHECK_NE(out_, nullptr); |
| 364 | out_->buffers.resize(2); |
| 365 | |
| 366 | RETURN_NOT_OK(LoadCommon(type.id())); |
| 367 | RETURN_NOT_OK(GetBuffer(buffer_index_++, &out_->buffers[1])); |
| 368 | |
| 369 | const int num_children = type.num_fields(); |
| 370 | if (num_children != 1) { |
| 371 | return Status::Invalid("Wrong number of children: ", num_children); |
| 372 | } |
| 373 | |
| 374 | return LoadChildren(type.fields()); |
| 375 | } |
| 376 | |
| 377 | template <typename TYPE> |
| 378 | Status LoadListView(const TYPE& type) { |