Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 public int GetHashCode(RawStateMachineMethodRow obj) =>
 (int)obj.MoveNextMethod +
 rol(obj.KickoffMethod, 3);
Esempio n. 3
0
 public bool Equals(RawStateMachineMethodRow x, RawStateMachineMethodRow y) =>
 x.MoveNextMethod == y.MoveNextMethod &&
 x.KickoffMethod == y.KickoffMethod;
Esempio n. 4
0
 static uint ReadStateMachineMethodColumnMethod(ref RawStateMachineMethodRow row, int index) => row[index];