private static int GetDifference(SequenceId a, SequenceId b) { RailDebug.Assert(a.IsValid); RailDebug.Assert(b.IsValid); int difference = (int)((a.rawValue << BIT_SHIFT) - (b.rawValue << BIT_SHIFT)); return(difference); }
public static SequenceId ReadSequenceId(this RailBitBuffer buffer) { return(SequenceId.Read(buffer)); }
public static SequenceId PeekSequenceId(this RailBitBuffer buffer) { return(SequenceId.Peek(buffer)); }
public static void WriteSequenceId(this RailBitBuffer buffer, SequenceId sequenceId) { sequenceId.Write(buffer); }