read() public method

public read ( EndianBinaryReader r ) : void
r EndianBinaryReader
return void
示例#1
0
 public void read(BinaryReader r)
 {
     this.Count   = r.ReadInt32();
     this.Phrases = new Phrase[this.Count]; for (int i = 0; i < this.Count; i++)
     {
         Phrase obj = new Phrase(); obj.read(r); this.Phrases[i] = obj;
     }
 }
示例#2
0
 public void read(EndianBinaryReader r)
 {
     Count   = r.ReadInt32();
     Phrases = new Phrase[Count]; for (int i = 0; i < Count; i++)
     {
         var obj = new Phrase(); obj.read(r); Phrases[i] = obj;
     }
 }
 public void read(EndianBinaryReader r)
 {
     if (r.BaseStream.Length > 0)
     {
         Count = r.ReadInt32();
         Phrases = new Phrase[Count]; for (int i = 0; i < Count; i++) { var obj = new Phrase(); obj.read(r); Phrases[i] = obj; }
     }
 }
 public void read(BinaryReader r)
 {
     this.Count = r.ReadInt32();
     this.Phrases = new Phrase[this.Count]; for (int i=0; i<this.Count; i++) { Phrase obj = new Phrase(); obj.read(r); this.Phrases[i] = obj; }
 }