[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / TxOut.cs
1 using org.ldk.impl;
2 using org.ldk.enums;
3 using org.ldk.util;
4 using System;
5
6 namespace org { namespace ldk { namespace structs {
7
8 public class TxOut : CommonBase {
9         /** The script_pubkey in this output */
10         public readonly byte[] script_pubkey;
11         /** The value, in satoshis, of this output */
12         public readonly long value;
13
14     internal TxOut(object _dummy, long ptr) : base(ptr) {
15                 this.script_pubkey = InternalUtils.decodeUint8Array(bindings.TxOut_get_script_pubkey(ptr));
16                 this.value = bindings.TxOut_get_value(ptr);
17         }
18     public TxOut(long value, byte[] script_pubkey) : this(null, bindings.TxOut_new(InternalUtils.encodeUint8Array(script_pubkey), value)) {}
19
20         ~TxOut() {
21                 if (ptr != 0) { bindings.TxOut_free(ptr); }
22         }
23 }} } }