public int getRowCellBlockSize(int startRow, int endRow) {int result = 0;for(int rowIx=startRow; rowIx<=endRow && rowIx<records.length; rowIx++) {result += getRowSerializedSize(records[rowIx]);}return result;}
public int GetRowCellBlockSize(int startRow, int endRow){MyEnumerator itr = new MyEnumerator(ref records,startRow, endRow);int size = 0;while (itr.MoveNext()){CellValueRecordInterface cell = (CellValueRecordInterface)itr.Current;int row = cell.Row;if (row > endRow)break;if ((row >= startRow) && (row <= endRow))size += ((RecordBase)cell).RecordSize;}return size;}