/// <summary> /// Reads a raw <c>StateMachineMethod</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 TryReadStateMachineMethodRow(uint rid, out RawStateMachineMethodRow row) { var table = StateMachineMethodTable; if (table.IsInvalidRID(rid)) { row = default; return(false); } var reader = table.DataReader; reader.Position = (rid - 1) * (uint)table.TableInfo.RowSize; row = new RawStateMachineMethodRow( table.Column0.Unsafe_Read24(ref reader), table.Column1.Unsafe_Read24(ref reader)); return(true); }
public int GetHashCode(RawStateMachineMethodRow obj) => (int)obj.MoveNextMethod + rol(obj.KickoffMethod, 3);
public bool Equals(RawStateMachineMethodRow x, RawStateMachineMethodRow y) => x.MoveNextMethod == y.MoveNextMethod && x.KickoffMethod == y.KickoffMethod;
static uint ReadStateMachineMethodColumnMethod(ref RawStateMachineMethodRow row, int index) => row[index];