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

EncodeSpentTx() public static method

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

Same methods

DataEncoder::EncodeSpentTx ( BinaryWriter writer, SpentTx spentTx ) : void