Example #1
0
 public void ToBytes(IBytesSink sink)
 {
     sink.Put(Value.ToBytes());
     if (!IsNative)
     {
         Currency.ToBytes(sink);
         Issuer.ToBytes(sink);
     }
 }
Example #2
0
 public void ToBytes(IBytesSink sink)
 {
     sink.Put(Value.ToBytes());
     if (!IsNative)
     {
         Currency.ToBytes(sink);
         Issuer.ToBytes(sink);
     }
 }
Example #3
0
        public void ToBytes(IBytesSink buffer)
        {
            var n = 0;

            foreach (var path in this)
            {
                if (n++ != 0)
                {
                    buffer.Put(PathSeparatorByte);
                }
                foreach (var hop in path)
                {
                    buffer.Put((byte)hop.Type);
                    if (hop.HasAccount())
                    {
                        buffer.Put(hop.Account.Buffer);
                    }
                    if (hop.HasCurrency())
                    {
                        buffer.Put(hop.Currency.Buffer);
                    }
                    if (hop.HasIssuer())
                    {
                        buffer.Put(hop.Issuer.Buffer);
                    }
                }
            }
            buffer.Put(PathsetEndByte);
        }
 public void ToBytes(IBytesSink sink)
 {
     sink.Put(Bytes);
 }
Example #5
0
 public void ToBytes(IBytesSink sink) = \ > \ sink.Put(ToBytes());
Example #6
0
 public void ToBytes(IBytesSink sink)
 {
     sink.Put(Buffer);
 }
Example #7
0
 public void Put(byte[] n)
 {
     _sink.Put(n);
 }
Example #8
0
 public void ToBytes(IBytesSink sink)
 {
     sink.Put(Buffer);
 }