예제 #1
0
        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);
        }
예제 #2
0
 public static SequenceId ReadSequenceId(this RailBitBuffer buffer)
 {
     return(SequenceId.Read(buffer));
 }
예제 #3
0
 public static SequenceId PeekSequenceId(this RailBitBuffer buffer)
 {
     return(SequenceId.Peek(buffer));
 }
예제 #4
0
 public static void WriteSequenceId(this RailBitBuffer buffer, SequenceId sequenceId)
 {
     sequenceId.Write(buffer);
 }