Example #1
0
        public static void WritePackedLong(this DataStreamWriter writer, long value, NetworkCompressionModel compression)
        {
            var union = new LongIntUnion {
                LongValue = value
            };

            writer.WritePackedInt(union.Int0Value, compression);
            writer.WritePackedInt(union.Int1Value, compression);
        }
        public PatternBankExchange(long id)
        {
            var union = new LongIntUnion {
                LongValue = id
            };

            Origin      = union.Int0Value;
            Destination = union.Int1Value;

            Id = id;

            OriginToDestination = new Dictionary <int, int>();
            DestinationToOrigin = new Dictionary <int, int>();
        }