示例#1
0
        private static Pr1132Channel ParseChannel(byte[] buf)
        {
            var channel = new Pr1132Channel();

            var nameBytes = buf.Take(24).ToArray();

            channel.Name = Windows1251Encoding.Instance.GetString(nameBytes, 0, 24).TrimEnd((char)0);

            channel.Type = (Pr1132ChannelUiType)buf[24];

            return(channel);
        }
示例#2
0
 public Pr1132Configuration()
 {
     Groups   = new Pr1132ControlGroup[16];
     Channels = new Pr1132Channel[32];
     Timers   = new Pr1132Timer[7];
 }