audk/DynamicTablesPkg/Library/Common/AmlLib/AmlEncoding
Pierre Gondois 12e65fd258 DynamicTablesPkg: Helper function to compute package length
Some AML object have a PkgLen which indicates the size of the
AML object. The package length can be encoded in 1 to 4 bytes.
The bytes used to encode the PkgLen is itself counted in the
PkgLen value. So, if an AML object's size increments/decrements,
the number of bytes used to encode the PkgLen value can itself
increment/decrement.

Therefore, a helper function AmlComputePkgLength() is introduced
to simply computation of the PkgLen.

Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
2021-10-08 15:39:42 +00:00
..
Aml.c DynamicTablesPkg: Helper function to compute package length 2021-10-08 15:39:42 +00:00
Aml.h DynamicTablesPkg: Helper function to compute package length 2021-10-08 15:39:42 +00:00