BitSharp.Network.NetworkEncoder.EncodeNetworkAddressWithTime C# (CSharp) Method

EncodeNetworkAddressWithTime() public static method

public static EncodeNetworkAddressWithTime ( NetworkAddressWithTime networkAddressWithTime ) : byte[]
networkAddressWithTime NetworkAddressWithTime
return byte[]
        public static byte[] EncodeNetworkAddressWithTime(NetworkAddressWithTime networkAddressWithTime)
        {
            using (var stream = new MemoryStream())
            using (var writer = new BinaryWriter(stream))
            {
                EncodeNetworkAddressWithTime(writer, networkAddressWithTime);
                return stream.ToArray();
            }
        }

Same methods

NetworkEncoder::EncodeNetworkAddressWithTime ( BinaryWriter writer, NetworkAddressWithTime networkAddressWithTime ) : void