private TS_GLYPHCACHE_CAPABILITYSET ParseCapsTypeGlyphCache(byte[] data)
{
int currentIndex = 0;
TS_GLYPHCACHE_CAPABILITYSET set = new TS_GLYPHCACHE_CAPABILITYSET();
set.capabilitySetType = (capabilitySetType_Values)ParseUInt16(data, ref currentIndex, false);
set.lengthCapability = ParseUInt16(data, ref currentIndex, false);
set.GlyphCache = new TS_CACHE_DEFINITION[10];
for (int i = 0; i < 10; i++)
{
set.GlyphCache[i] = ParseGlyphCache(data, ref currentIndex);
}
set.FragCache = ParseFragCache(data, ref currentIndex);
set.GlyphSupportLevel = (GlyphSupportLevel_Values)ParseUInt16(data, ref currentIndex, false);
set.pad2octets = ParseUInt16(data, ref currentIndex, false);
VerifyDataLength(data.Length, currentIndex, ConstValue.ERROR_MESSAGE_DATA_LENGTH_INCONSISTENT);
return set;
}