dmi_entity_encode
Description
The dmi_entity_encode function writes a structure back into the bytes it
is made of, undoing what dmi_entity_decode has done.
Structures whose specification describes their layout are encoded by its
fields, see dmi_fields_encode, and the rest by the encoding handler of
the specification. Structures which carry no data the model holds, such as
the end-of-table one, and the ones of the types no specification describes,
are kept as they are in the preserve mode: their bytes are all the model the
structure has.
The encoder is set up with dmi_encoder_initialize, which writes the
header, and the formatted area is completed with dmi_encoder_finish.
Parameters
encoder-
Encoder of the structure, see
dmi_encoder_initialize.