| 946 | } |
| 947 | |
| 948 | flatbuffers::Offset<KVVector> SerializeCustomMetadata( |
| 949 | FBB& fbb, const std::shared_ptr<const KeyValueMetadata>& metadata) { |
| 950 | std::vector<KeyValueOffset> key_values; |
| 951 | if (metadata != nullptr) { |
| 952 | AppendKeyValueMetadata(fbb, *metadata, &key_values); |
| 953 | return fbb.CreateVector(key_values); |
| 954 | } else { |
| 955 | // null |
| 956 | return 0; |
| 957 | } |
| 958 | } |
| 959 | |
| 960 | Status SchemaToFlatbuffer(FBB& fbb, const Schema& schema, |
| 961 | const DictionaryFieldMapper& mapper, |
no test coverage detected