Combine an engine ID and a name context to an engine name dparam. */
| 237 | |
| 238 | /** Combine an engine ID and a name context to an engine name dparam. */ |
| 239 | inline uint64_t PackEngineNameDParam(EngineID engine_id, EngineNameContext context, uint32_t extra_data = 0) |
| 240 | { |
| 241 | return engine_id.base() | (static_cast<uint64_t>(context) << 32) | (static_cast<uint64_t>(extra_data) << 40); |
| 242 | } |
| 243 | |
| 244 | static const uint MAX_LENGTH_ENGINE_NAME_CHARS = 32; ///< The maximum length of an engine name in characters including '\0' |
| 245 |
no test coverage detected