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>()); } } }
protected override void Init(FastBinaryReader reader) { IsWrite = reader.ReadBoolean(); InstructionImageId = reader.ReadInt32(); InstructionRelativeAddress = reader.ReadUInt32(); MemoryAllocationBlockId = reader.ReadInt32(); MemoryRelativeAddress = reader.ReadUInt32(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { FieldTypeId = (RICustomDataFieldIdType)reader.ReadInt32(); Justification = (RICustomDataColumnJustificationType)reader.ReadInt32(); Caption = reader.ReadSafeString(); Format = reader.ReadSafeString(); NullText = reader.ReadSafeString(); }
public void FromReader(FastBinaryReader reader) { IsWrite = reader.ReadBoolean(); InstructionImageId = reader.ReadInt32(); InstructionRelativeAddress = reader.ReadUInt32(); MemoryImageId = reader.ReadInt32(); MemoryRelativeAddress = reader.ReadUInt32(); }
public void FromReader(FastBinaryReader reader) { Id = reader.ReadInt32(); InstructionImageId = reader.ReadInt32(); InstructionRelativeAddress = reader.ReadUInt32(); Size = reader.ReadUInt32(); Address = reader.ReadUInt64(); }
public void FromReader(FastBinaryReader reader) { SourceImageId = reader.ReadInt32(); SourceInstructionRelativeAddress = reader.ReadUInt32(); DestinationImageId = reader.ReadInt32(); DestinationInstructionRelativeAddress = reader.ReadUInt32(); Taken = reader.ReadBoolean(); BranchType = (BranchTypes)reader.ReadByte(); }
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(); }
/// <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 SessionId = reader.ReadUInt64(); DestinationBinding = reader.ReadInt32(); EncryptedKey = reader.ReadByteArray(); EncryptedIV = reader.ReadByteArray(); CertificateThumbprint = reader.ReadSafeString(); RequestId = reader.ReadUInt64(); SequenceCount = reader.ReadInt16(); DecompressedLength = reader.ReadInt32(); }
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(); } }
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(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { FColor = reader.ReadInt32(); FHue = reader.ReadByte(); FSaturation = reader.ReadByte(); FBrightness = reader.ReadByte(); }
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>(); }
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); }
public override void ReadData(FastBinaryReader reader, Object additionalInfo) { Root = (RICustomData)reader.Tag; base.ReadData(reader, additionalInfo); FExtraData = reader.ReadObject <FastSerializerObjectData>(); FExtraDataTypeHash = reader.ReadInt32(); Fields = new List <RICustomDataField>(); Fields.AddRange(reader.ReadEnumerable <RICustomDataField>()); }
public static Gpw ParseGpw(string fileName) { if (GpwCache.TryGetValue(fileName, out Gpw gpw)) { return(gpw); } using (FastBinaryReader br = VirtualFilesystem.Instance.GetFileStream(fileName)) { gpw = new Gpw(); string header = br.ReadCString(4); // Always GAS0 gpw.AudioRange = (short)br.ReadUInt16(); ushort unk2 = br.ReadUInt16(); int unk3 = br.ReadInt32(); int unk4 = br.ReadInt32(); int unk5 = br.ReadInt32(); int unk6 = br.ReadInt32(); int unk7 = br.ReadInt32(); br.Position += 4; // Skip RIFF header int waveFileSize = br.ReadInt32() + 8; // Read total size of audio data from RIFF header br.Position -= 8; // Go back to RIFF header byte[] audioData = br.ReadBytes(waveFileSize); gpw.Clip = WavUtility.ToAudioClip(audioData, fileName); GpwCache.Add(fileName, gpw); return(gpw); } }
/// <summary> /// Loads a trace prefix file from the given byte buffer. /// </summary> /// <param name="buffer">Buffer containing the trace data.</param> /// <param name="allocations">Optional. Allocation lookup table, indexed by IDs.</param> public TracePrefixFile(Memory <byte> buffer, Dictionary <int, HeapAllocation>?allocations = null) : base(allocations) { // Read image file information var reader = new FastBinaryReader(buffer); int imageFileCount = reader.ReadInt32(); ImageFiles = new Dictionary <int, ImageFileInfo>(); for (int i = 0; i < imageFileCount; ++i) { var imageFile = new ImageFileInfo(reader); ImageFiles.Add(imageFile.Id, imageFile); } // Set internal buffer Buffer = buffer.Slice(reader.Position); }
public void FromReader(FastBinaryReader reader) { Id = reader.ReadInt32(); Size = reader.ReadUInt32(); Address = reader.ReadUInt64(); }
public void FromReader(FastBinaryReader reader) { Id = reader.ReadInt32(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { Name = reader.ReadSafeString(); Mode = (FilterMode)reader.ReadInt32(); IDs = new List <String>(reader.ReadStringArray()); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { Root = (RICustomData)reader.Tag; CustomDataType = (RICustomDataElementType)reader.ReadInt32(); Level = reader.ReadInt16(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { FValue = reader.ReadInt32(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { // Version 5.0 data types RequestType = (MessageRequestType)reader.ReadInt32(); Request = reader.ReadObject <FastSerializerObjectData>(); }
protected override void Init(FastBinaryReader reader) { Id = reader.ReadInt32(); }
protected override void Init(FastBinaryReader reader) { Id = reader.ReadInt32(); Size = reader.ReadUInt32(); Address = reader.ReadUInt64(); }
public virtual void ReadData(FastBinaryReader reader, Object additionalInfo) { FileName = reader.ReadSafeString(); FileSize = reader.ReadInt32(); }