/// <summary> /// Parse the PtypMultipleString8 structure. /// </summary> /// <param name="s">A stream containing the PtypMultipleString8 structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); List<MAPIString> tempvalue = new List<MAPIString>(); MAPIString str; for (int i = 0; i < this.Count.GetHashCode(); ) { str = new MAPIString(Encoding.ASCII); str.Parse(s); tempvalue.Add(str); i = i + str.Value.Length + 1; } this.Value = tempvalue.ToArray(); }
/// <summary> /// Parse the PtypMultipleTime structure. /// </summary> /// <param name="s">A stream containing the PtypMultipleTime structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); List<PtypTime> tempvalue = new List<PtypTime>(); for (int i = 0; i < this.Count.GetHashCode(); ) { PtypTime time = new PtypTime(); time.Parse(s); tempvalue.Add(time); i = i + sizeof(Int64); } this.Value = tempvalue.ToArray(); }
/// <summary> /// Parse the PtypMultipleInteger32 structure. /// </summary> /// <param name="s">A stream containing the PtypMultipleInteger32 structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); this.undefinedCount = ReadUshort(); List<Int32> tempvalue = new List<Int32>(); for (int i = 0; i < this.Count.GetHashCode(); ) { tempvalue.Add(ReadINT32()); i = i + sizeof(Int32); } this.Value = tempvalue.ToArray(); }
/// <summary> /// Parse the PtypMultipleGuid structure. /// </summary> /// <param name="s">A stream containing the PtypMultipleGuid structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); List<Guid> tempvalue = new List<Guid>(); for (int i = 0; i < this.Count.GetHashCode(); ) { tempvalue.Add(ReadGuid()); i = i + tempvalue[i].ToByteArray().Length; } this.Value = tempvalue.ToArray(); }
/// <summary> /// Parse the PtypMultipleFloatingTime structure. /// </summary> /// <param name="s">A stream containing the PtypMultipleFloatingTime structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); List<double> tempvalue = new List<double>(); for (int i = 0; i < this.Count.GetHashCode(); ) { tempvalue.Add(ReadINT64()); i = i + sizeof(double); } this.Value = tempvalue.ToArray(); }
/// <summary> /// Parse the PtypMultipleBinary structure. /// </summary> /// <param name="s">A stream containing the PtypMultipleBinary structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); this.undefinedCount = ReadUshort(); List<PtypBinary> tempvalue = new List<PtypBinary>(); for (int i = 0; i < this.Count.GetHashCode(); ) { PtypBinary binary = new PtypBinary(CountWideEnum.twoBytes); binary.Parse(s); tempvalue.Add(binary); i = i + 2 + binary.Count.GetHashCode(); } this.Value = tempvalue.ToArray(); }
/// <summary> /// Parse the PtypBinary structure. /// </summary> /// <param name="s">A stream containing the PtypBinary structure</param> public override void Parse(Stream s) { base.Parse(s); HelpMethod help = new HelpMethod(); this.Count = help.ReadCount(this.countWide, s); this.Value = ReadBytes(this.Count.GetHashCode()); }