Example #1
0
        internal void AddAddress(PlatformSwapAddress addr)
        {
            var list = InteropAddresses.ToList();

            list.Add(addr);
            this.InteropAddresses = list.ToArray();
        }
Example #2
0
        public void UnserializeData(BinaryReader reader)
        {
            this.Name   = reader.ReadVarString();
            this.Symbol = reader.ReadVarString();
            var interopCount = (int)reader.ReadVarInt();

            this.InteropAddresses = new PlatformSwapAddress[interopCount];
            for (int i = 0; i < interopCount; i++)
            {
                var temp = new PlatformSwapAddress();
                temp.ExternalAddress = reader.ReadVarString();
                temp.LocalAddress    = reader.ReadAddress();
                InteropAddresses[i]  = temp;
            }
        }