The dmi_encoder_entity function returns the structure the encoder is
writing, so that an encoding handler reaches it without being handed it
separately.
Parameters
encoder
Encoder to query.
Return value
Structure being encoded, or nullptr if encoder is nullptr.