private Row GetRow(int idx) { MemoryStream stream = new MemoryStream(data); BinaryReader reader = new BinaryReader(stream); reader.BaseStream.Position = _rowSize*idx; TableCell[] cells = new TableCell[_colDescs.Length]; for (int i = 0; i < _colDescs.Length; i++) { //uint valu = ReadSingleValue(_colDescs[i].Type, reader); //cells[i] = new TableCell(valu, _helper); cells[i] = new TableCell(_colDescs[i].Type, reader, _helper); } stream.Close(); return new Row(cells, this); }
public Row(TableCell[] cells, Table table) { _cells = cells; _table = table; }