/// <summary> /// Parse TS_CD_HEADER /// (parser index is updated according to parsed length) /// </summary> /// <param name="data">data to be parsed</param> /// <param name="currentIndex">current parser index</param> /// <returns>TS_CD_HEADER</returns> private TS_CD_HEADER ParseTsCdHeader(byte[] data, ref int currentIndex) { TS_CD_HEADER header = new TS_CD_HEADER(); // TS_CD_HEADER: cbCompFirstRowSize header.cbCompFirstRowSize = (cbCompFirstRowSize_Values)ParseUInt16(data, ref currentIndex, false); // TS_CD_HEADER: cbCompMainBodySize header.cbCompMainBodySize = ParseUInt16(data, ref currentIndex, false); // TS_CD_HEADER: cbScanWidth header.cbScanWidth = ParseUInt16(data, ref currentIndex, false); // TS_CD_HEADER: cbUncompressedSize header.cbUncompressedSize = ParseUInt16(data, ref currentIndex, false); return header; }