Esempio n. 1
0
 /// <summary>
 ///     Get the absolute offset in the EX data file of a column for a given row.
 /// </summary>
 /// <param name="col"><see cref="Column" /> whose offset should be returned.</param>
 /// <param name="row"><see cref="IDataRow" /> to use as base.</param>
 /// <returns>Returns the absolute offset in the EX data file <c>col</c> inside <c>row</c>.</returns>
 protected static int GetFieldOffset(Column col, IDataRow row)
 {
     return col.Offset + row.Offset;
 }
Esempio n. 2
0
 /// <summary>
 ///     Read a column's data of a row.
 /// </summary>
 /// <param name="buffer">A byte-array containing the contents of the EX data file.</param>
 /// <param name="col"><see cref="Column" /> to read.</param>
 /// <param name="row"><see cref="IDataRow" /> to read in.</param>
 /// <returns>Returns the value read from the given <c>row</c> and <c>column</c>.</returns>
 public abstract object Read(byte[] buffer, Column col, IDataRow row);