Ejemplo n.º 1
0
        EpgComponentInfo getComponentInfo(SqlDataReader reader0, ref int i0)
        {
            object o1 = reader0[i0++];

            if (!o1.Equals(DBNull.Value))
            {
                byte[]           bytes1            = (byte[])o1;
                int              i1                = 0;
                EpgComponentInfo epgComponentInfo1 = new EpgComponentInfo()
                {
                    stream_content = bytes1[i1++],
                    component_type = bytes1[i1++],
                    component_tag  = bytes1[i1++]
                };
                return(epgComponentInfo1);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
        void addEpgComponentInfo(ref Dictionary <string, string> dict0, string column0, EpgComponentInfo componentInfo0)
        {
            StringBuilder sb1 = new StringBuilder("0x");

            sb1.Append(componentInfo0.stream_content.ToString("X2"));
            sb1.Append(componentInfo0.component_type.ToString("X2"));
            sb1.Append(componentInfo0.component_tag.ToString("X2"));
            dict0.Add(column0, sb1.ToString());
        }