Ejemplo n.º 1
0
        public void ReadFromStream(Stream stream)
        {
            var br = new AdvancedBinaryReader(stream, false);

            Type         = br.ReadByte();
            ControlValue = br.ReadInt16();
            MaxValue     = br.ReadInt16();
            MinValue     = br.ReadInt16();
        }
Ejemplo n.º 2
0
        public IRpdDumpRule Build()
        {
            var rule = new RpdDumpRuleSimple();
            var br   = new AdvancedBinaryReader(_stream, false);

            rule.Type         = br.ReadByte();
            rule.ControlValue = br.ReadInt16();
            rule.MaxValue     = br.ReadInt16();
            rule.MinValue     = br.ReadInt16();
            return(rule);
        }
Ejemplo n.º 3
0
        public void ReadFromStream(Stream stream)
        {
            var br = new AdvancedBinaryReader(stream, false);

            Number = br.ReadByte();
            Status = br.ReadByte();
            Day    = br.ReadByte();
            Month  = br.ReadByte();
            Year   = br.ReadByte();
            Hour   = br.ReadByte();
            Minute = br.ReadByte();
            Second = br.ReadByte();

            DescriptionPageAddress = br.ReadInt32();
            LastWrittenPageAddress = br.ReadInt32();

            FaultWasReaded = br.ReadByte();
            BadPageCounter = br.ReadInt16();
        }
        public IRpdDataInformation Build()
        {
            var rpdLogInfo = new RpdDataInformationSimple();

            var br = new AdvancedBinaryReader(_stream, false);

            rpdLogInfo.Number = br.ReadByte();
            rpdLogInfo.Status = br.ReadByte();
            rpdLogInfo.Day    = br.ReadByte();
            rpdLogInfo.Month  = br.ReadByte();
            rpdLogInfo.Year   = br.ReadByte();
            rpdLogInfo.Hour   = br.ReadByte();
            rpdLogInfo.Minute = br.ReadByte();
            rpdLogInfo.Second = br.ReadByte();

            rpdLogInfo.DescriptionPageAddress = br.ReadInt32();
            rpdLogInfo.LastWrittenPageAddress = br.ReadInt32();

            rpdLogInfo.FaultWasReaded = br.ReadByte();
            rpdLogInfo.BadPageCounter = br.ReadInt16();
            return(rpdLogInfo);
        }