Add LArrayOf<>

This commit is contained in:
Behdad Esfahbod 2017-01-22 20:31:53 -08:00
parent 5e156fa5ed
commit b732c53eb5
3 changed files with 4 additions and 3 deletions

View File

@ -952,6 +952,7 @@ struct ArrayOf
public:
DEFINE_SIZE_ARRAY (sizeof (LenType), array);
};
template <typename Type> struct LArrayOf : ArrayOf<Type, ULONG> {};
/* Array of Offset's */
template <typename Type, typename OffsetType=USHORT>

View File

@ -348,8 +348,8 @@ struct CBLC
}
protected:
FixedVersion<>version;
ArrayOf<BitmapSizeTable, ULONG> sizeTables;
FixedVersion<> version;
LArrayOf<BitmapSizeTable> sizeTables;
public:
DEFINE_SIZE_ARRAY(8, sizeTables);

View File

@ -1527,7 +1527,7 @@ struct FeatureVariations
protected:
FixedVersion<> version; /* Version--0x00010000u */
ArrayOf<FeatureVariationRecord, ULONG>
LArrayOf<FeatureVariationRecord>
varRecords;
public:
DEFINE_SIZE_ARRAY (8, varRecords);