BitSharp.Core.DataEncoder.EncodeUnspentTx C# (CSharp) Method

EncodeUnspentTx() public static method

public static EncodeUnspentTx ( UnspentTx unspentTx ) : byte[]
unspentTx BitSharp.Core.Domain.UnspentTx
return byte[]
        public static byte[] EncodeUnspentTx(UnspentTx unspentTx)
        {
            using (var stream = new MemoryStream())
            using (var writer = new BinaryWriter(stream))
            {
                EncodeUnspentTx(writer, unspentTx);
                return stream.ToArray();
            }
        }

Same methods

DataEncoder::EncodeUnspentTx ( BinaryWriter writer, UnspentTx unspentTx ) : void