Пример #1
0
 public void FromReader(FastBinaryReader reader)
 {
     IsWrite                    = reader.ReadBoolean();
     InstructionImageId         = reader.ReadInt32();
     InstructionRelativeAddress = reader.ReadUInt32();
     MemoryRelativeAddress      = reader.ReadUInt32();
 }
Пример #2
0
 protected override void Init(FastBinaryReader reader)
 {
     IsWrite                    = reader.ReadBoolean();
     InstructionImageId         = reader.ReadInt32();
     InstructionRelativeAddress = reader.ReadUInt32();
     MemoryRelativeAddress      = reader.ReadUInt32();
 }
Пример #3
0
        public override void ReadData(FastBinaryReader reader, Object additionalInfo)
        {
            Root = (RICustomData)reader.Tag;
            base.ReadData(reader, additionalInfo);

            Expanded = reader.ReadBoolean();
            Caption  = reader.ReadSafeString();

            Children = new List <RICustomDataElement>();
            Int32 elementCount = reader.ReadInt32();

            for (Int32 i = 0; i < elementCount; i++)
            {
                Int32 elementTypeHash = reader.ReadInt32();
                if (elementTypeHash == RICustomDataFieldTypeHash)
                {
                    Children.Add(reader.ReadObject <RICustomDataField>());
                }
                else if (elementTypeHash == RICustomDataRowTypeHash)
                {
                    Children.Add(reader.ReadObject <RICustomDataRow>());
                }
                else if (elementTypeHash == RICustomDataCategoryTypeHash)
                {
                    Children.Add(reader.ReadObject <RICustomDataCategory>());
                }
                else if (elementTypeHash == RICustomDataContainerTypeHash)
                {
                    Children.Add(reader.ReadObject <RICustomData>());
                }
            }
        }
Пример #4
0
        public override void ReadData(FastBinaryReader reader, Object additionalInfo)
        {
            Root = (RICustomData)reader.Tag;

            base.ReadData(reader, additionalInfo);

            // Hint is no longer used. This line is left here for backward compatibility
            reader.ReadSafeString();

            ColumnPos = reader.ReadInt16();
            Column    = Root.Columns[ColumnPos];
            Value     = null;

            if (!reader.IsNull())
            {
                switch (Column.FieldTypeId)
                {
                case RICustomDataFieldIdType.Decimal: Value = reader.ReadDecimal(); break;

                case RICustomDataFieldIdType.Integer: Value = reader.ReadInt64(); break;

                case RICustomDataFieldIdType.DateTime: Value = reader.ReadDateTime(); break;

                case RICustomDataFieldIdType.Boolean: Value = reader.ReadBoolean(); break;

                case RICustomDataFieldIdType.String: Value = reader.ReadString(); break;

                case RICustomDataFieldIdType.Object: Value = reader.ReadString(); break;

                case RICustomDataFieldIdType.Unknown: Value = reader.ReadString(); break;

                default: break;
                }
            }
        }
Пример #5
0
        public override void ReadData(FastBinaryReader reader, Object additionalInfo)
        {
            Root              = this;
            Columns           = reader.ReadEnumerable <RICustomDataColumn>().ToArray();
            ShowColumns       = reader.ReadBoolean();
            AllowSort         = reader.ReadBoolean();
            IsPropertyGrid    = reader.ReadBoolean();
            HasDetails        = reader.ReadBoolean();
            MaxCategoryLevels = reader.ReadInt16();

            Object tag = reader.Tag;

            reader.Tag = Root;

            base.ReadData(reader, additionalInfo);
            reader.Tag = tag;
        }
 public virtual void ReadData(FastBinaryReader reader, Object additionalInfo)
 {
     FFilterInfo    = reader.ReadObject <FilterInfo>();
     FFilterDefined = reader.ReadBoolean();
     FMessages      = ReadBooleanArray(reader);
     FCheckpoints   = ReadBooleanArray(reader);
     FCheckmarks    = ReadBooleanArray(reader);
     FLevels        = ReadBooleanArray(reader);
 }
Пример #7
0
 protected override void Init(FastBinaryReader reader)
 {
     SourceImageId = reader.ReadInt32();
     SourceInstructionRelativeAddress = reader.ReadUInt32();
     DestinationImageId = reader.ReadInt32();
     DestinationInstructionRelativeAddress = reader.ReadUInt32();
     Taken      = reader.ReadBoolean();
     BranchType = (BranchTypes)reader.ReadByte();
 }
Пример #8
0
 public void FromReader(FastBinaryReader reader)
 {
     SourceImageId = reader.ReadInt32();
     SourceInstructionRelativeAddress = reader.ReadUInt32();
     DestinationImageId = reader.ReadInt32();
     DestinationInstructionRelativeAddress = reader.ReadUInt32();
     Taken      = reader.ReadBoolean();
     BranchType = (BranchTypes)reader.ReadByte();
 }
Пример #9
0
            /// <summary>
            /// Reads image data.
            /// </summary>
            /// <param name="reader">Binary reader.</param>
            public ImageFileInfo(FastBinaryReader reader)
            {
                Id           = reader.ReadInt32();
                StartAddress = reader.ReadUInt64();
                EndAddress   = reader.ReadUInt64();
                int nameLength = reader.ReadInt32();

                Name        = reader.ReadString(nameLength);
                Interesting = reader.ReadBoolean();
            }
        private static Boolean[] ReadBooleanArray(FastBinaryReader reader)
        {
            Boolean[] array = new Boolean[reader.ReadInt32()];
            for (Int32 i = 0; i < array.Length; i++)
            {
                array[i] = reader.ReadBoolean();
            }

            return(array);
        }
Пример #11
0
        public virtual void ReadData(FastBinaryReader reader, Object additionalInfo)
        {
            SaveOnNewDay      = reader.ReadBoolean();
            SaveOnMsgLimit    = reader.ReadInt32();
            RecycleFilesEvery = reader.ReadInt16();
            SaveOnSize        = 0;

            if (reader.AnyObjectDataRemaining())
            {
                SaveOnSize = reader.ReadInt32();
            }
        }