コード例 #1
0
        /// <summary>
        /// Parse TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE
        /// </summary>
        /// <param name="updateHeader">update header</param>
        /// <param name="compressionFlags">compression flags</param>
        /// <param name="size">update data size(before decompression)</param>
        /// <returns>TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE</returns>
        private TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE ParseTsFpSystemPointerHiddenAttribute(
            byte updateHeader,
            compressedType_Values compressionFlags,
            UInt16 size)
        {
            TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE hiddenAttribute = new TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE();

            // TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE: updateHeader
            hiddenAttribute.updateHeader = updateHeader;

            // TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE: compressionFlags
            hiddenAttribute.compressionFlags = compressionFlags;

            // TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE: size
            hiddenAttribute.size = size;

            return hiddenAttribute;
        }
コード例 #2
0
        public static TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE CreateFPSystemPointerHiddenAttribute()
        {
            TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE fpSysPointer = new TS_FP_SYSTEMPOINTERHIDDENATTRIBUTE();

            fpSysPointer.updateHeader = (byte)(((int)updateCode_Values.FASTPATH_UPDATETYPE_PTR_NULL & 0x0f)
                | (((int)fragmentation_Value.FASTPATH_FRAGMENT_SINGLE) << 4)
                | ((int)compressedType_Values.None << 6));
            fpSysPointer.size = 0;

            return fpSysPointer;
        }