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; } } }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { Caption = reader.ReadString(); Properties = new NameValueCollection(); Int16 count = reader.ReadInt16(); for (Int32 i = 0; i < count; i++) { Properties[reader.ReadString()] = reader.ReadString(); } }
/// <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(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { // Version 5.0 data types FSequenceID = reader.ReadInt32(); FSessionID = reader.ReadUInt32(); FRequestID = reader.ReadUInt32(); FSourceUtcOffset = reader.ReadInt16(); FDateTime = reader.ReadDateTime(); FDomainID = reader.ReadInt32(); FProcessID = reader.ReadInt32(); FThreadID = reader.ReadInt32(); FCategory = reader.ReadString(); FApplication = reader.ReadString(); FMachineName = reader.ReadString(); FUserDomainName = reader.ReadString(); FUserName = reader.ReadString(); FIndentLevel = reader.ReadSByte(); FBkColor = Color.FromArgb(reader.ReadInt32()); FMessageType = (MessageType)reader.ReadInt32(); FMessageSubType = reader.ReadByte(); FMessage = reader.ReadString(); FDetailType = reader.ReadInt32(); FExtPropertyContainer = reader.ReadObject <ReflectInsightPropertiesContainer>(); FSubDetails = reader.ReadObject <FastSerializerObjectData>(); FDetails = reader.ReadObject <FastSerializerObjectData>(); }
public override void ReadData(FastBinaryReader reader, Object additionalInfo) { base.ReadData(reader, additionalInfo); FVersion = reader.ReadObject <SerializedVersion>(); Signature = reader.ReadByteArray(); Id = reader.ReadString(); FInitDateTime = reader.ReadDateTime(); FFirstDateTime = reader.ReadDateTime(); FLastDateTime = reader.ReadDateTime(); FNextSequenceId = reader.ReadInt32(); FMessageCount = reader.ReadInt32(); }