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