Beispiel #1
0
 /// <summary>
 /// Construct a <see cref="Row"/> object from input carried in via the given input stream.
 /// </summary>
 /// <param name="is">the input stream</param>
 /// <exception cref="IOException">if an I/O error occurs</exception>
 public Row(IDataInput @is)
 {
     for (int i = @is.ReadInt32(); i > 0; i--)
     {
         char ch = @is.ReadChar();
         Cell c  = new Cell();
         c.cmd     = @is.ReadInt32();
         c.cnt     = @is.ReadInt32();
         c.@ref    = @is.ReadInt32();
         c.skip    = @is.ReadInt32();
         cells[ch] = c;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Construct a <see cref="Row"/> object from input carried in via the given input stream.
 /// </summary>
 /// <param name="@is">the input stream</param>
 /// <exception cref="IOException">if an I/O error occurs</exception>
 public Row(IDataInput @is)
 {
     for (int i = @is.ReadInt(); i > 0; i--)
     {
         char ch = @is.ReadChar();
         Cell c = new Cell();
         c.cmd = @is.ReadInt();
         c.cnt = @is.ReadInt();
         c.@ref = @is.ReadInt();
         c.skip = @is.ReadInt();
         cells[ch] = c;
     }
 }