private TS_UD_CS_SEC ParseTsUdCsSec(byte[] data, ref int currentIndex)
{
TS_UD_CS_SEC secData = new TS_UD_CS_SEC();
// reserve the start index
int startIndex = currentIndex;
// TS_UD_SC_SEC1: header
secData.header.type = (TS_UD_HEADER_type_Values)ParseUInt16(data, ref currentIndex, false);
secData.header.length = ParseUInt16(data, ref currentIndex, false);
// TS_UD_SC_SEC1: encryptionMethod
secData.encryptionMethods = (encryptionMethod_Values)ParseUInt32(data, ref currentIndex, false);
// TS_UD_SC_SEC1: encryptionLevel
secData.extEncryptionMethods = (uint)ParseUInt32(data, ref currentIndex, false);
return secData;
}