예제 #1
0
파일: MockCPU.cs 프로젝트: rte-se/emul8
		public override void Load(PrimitiveReader reader)
		{
			var present = reader.ReadBoolean();
			if(present)
			{
				Placeholder = reader.ReadString();
			}
		}
예제 #2
0
        public void ReadFrom(PrimitiveReader reader)
        {
            AssemblyQualifiedName = reader.ReadString();
            var countNo = reader.ReadInt32();

            for (var i = 0; i < countNo; i++)
            {
                var field = new FieldDescriptor(AssemblyQualifiedName);
                field.ReadFrom(reader);
                Fields.Add(field);
            }
        }
예제 #3
0
파일: LogEntry.cs 프로젝트: rte-se/emul8
        public void Load(PrimitiveReader reader)
        {
            Id = reader.ReadUInt64();
            Message = reader.ReadString();
            SourceId = reader.ReadInt32();
            ThreadId = reader.ReadInt32();
            Time = new DateTime(reader.ReadInt64());
            numericLogLevel = reader.ReadInt32();

            if(ThreadId == -1)
            {
                ThreadId = null;
            }
        }
예제 #4
0
 public void ReadFrom(PrimitiveReader reader)
 {
     Name    = reader.ReadString();
     TypeAQN = reader.ReadString();
 }