6 namespace org { namespace ldk { namespace structs {
10 * An error occurring when converting from [`Script`] to [`ShutdownScript`].
12 public class InvalidShutdownScript : CommonBase {
13 internal InvalidShutdownScript(object _dummy, long ptr) : base(ptr) { }
14 ~InvalidShutdownScript() {
15 if (ptr != 0) { bindings.InvalidShutdownScript_free(ptr); }
19 * The script that did not meet the requirements from [BOLT #2].
21 * [BOLT #2]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md
23 public byte[] get_script() {
24 byte[] ret = bindings.InvalidShutdownScript_get_script(this.ptr);
30 * The script that did not meet the requirements from [BOLT #2].
32 * [BOLT #2]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md
34 public void set_script(byte[] val) {
35 bindings.InvalidShutdownScript_set_script(this.ptr, val);
41 * Constructs a new InvalidShutdownScript given each field
43 public static InvalidShutdownScript of(byte[] script_arg) {
44 long ret = bindings.InvalidShutdownScript_new(script_arg);
45 GC.KeepAlive(script_arg);
46 if (ret >= 0 && ret <= 4096) { return null; }
47 org.ldk.structs.InvalidShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvalidShutdownScript(null, ret); }
48 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
52 internal long clone_ptr() {
53 long ret = bindings.InvalidShutdownScript_clone_ptr(this.ptr);
59 * Creates a copy of the InvalidShutdownScript
61 public InvalidShutdownScript clone() {
62 long ret = bindings.InvalidShutdownScript_clone(this.ptr);
64 if (ret >= 0 && ret <= 4096) { return null; }
65 org.ldk.structs.InvalidShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InvalidShutdownScript(null, ret); }
66 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };