/// <summary> /// Reads a raw <c>MethodPtr</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 TryReadMethodPtrRow(uint rid, out RawMethodPtrRow row) { var table = MethodPtrTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawMethodPtrRow(table.Column0.Unsafe_Read24(ref reader)); return(true); }
public int GetHashCode(RawMethodPtrRow obj) => (int)obj.Method;
public bool Equals(RawMethodPtrRow x, RawMethodPtrRow y) => x.Method == y.Method;
public int GetHashCode(RawMethodPtrRow obj) { return((int)obj.Method); }
public bool Equals(RawMethodPtrRow x, RawMethodPtrRow y) { return(x.Method == y.Method); }
static uint ReadMethodPtrColumnMethod(ref RawMethodPtrRow row, int index) => row[index];