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

View File

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

View File

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