| 1387 | } |
| 1388 | |
| 1389 | static flatbuffers::Offset<flatbuffers::Vector<const flatbuf::Block*>> |
| 1390 | FileBlocksToFlatbuffer(FBB& fbb, const std::vector<FileBlock>& blocks) { |
| 1391 | std::vector<flatbuf::Block> fb_blocks; |
| 1392 | |
| 1393 | for (const FileBlock& block : blocks) { |
| 1394 | fb_blocks.emplace_back(block.offset, block.metadata_length, block.body_length); |
| 1395 | } |
| 1396 | |
| 1397 | return fbb.CreateVectorOfStructs(fb_blocks.data(), fb_blocks.size()); |
| 1398 | } |
| 1399 | |
| 1400 | Status WriteFileFooter(const Schema& schema, const std::vector<FileBlock>& dictionaries, |
| 1401 | const std::vector<FileBlock>& record_batches, |
no test coverage detected