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