/// <summary> /// Reads a raw <c>MethodDebugInformation</c> row or returns false if the row doesn't exist /// </summary> /// <param name="rid">Row ID</param> /// <param name="row">Row data</param> /// <returns></returns> public bool TryReadMethodDebugInformationRow(uint rid, out RawMethodDebugInformationRow row) { var table = MethodDebugInformationTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawMethodDebugInformationRow( table.Column0.Unsafe_Read24(ref reader), table.Column1.Unsafe_Read24(ref reader)); return(true); }
public int GetHashCode(RawMethodDebugInformationRow obj) => (int)obj.Document + rol(obj.SequencePoints, 3);
public bool Equals(RawMethodDebugInformationRow x, RawMethodDebugInformationRow y) => x.Document == y.Document && x.SequencePoints == y.SequencePoints;
static uint ReadMethodDebugInformationColumnMethod(ref RawMethodDebugInformationRow row, int index) => row[index];