Helper function to write the index of a given type to the writer.
| 386 | |
| 387 | /// Helper function to write the index of a given type to the writer. |
| 388 | LogicalResult writeTypeIndex(Type type, EncodingWriter &writer) { |
| 389 | // Ensure type is registered and get its index. |
| 390 | uint64_t index = getTypeIndex(type); |
| 391 | writer.writeVarInt(index); |
| 392 | return success(); |
| 393 | } |
| 394 | |
| 395 | private: |
| 396 | // Include generated type serialization functions. |
no test coverage detected