提交 b732c53e 编写于 作者: B Behdad Esfahbod

Add LArrayOf<>

上级 5e156fa5
...@@ -952,6 +952,7 @@ struct ArrayOf ...@@ -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>
......
...@@ -348,8 +348,8 @@ struct CBLC ...@@ -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);
......
...@@ -1527,7 +1527,7 @@ struct FeatureVariations ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册