return ret;
}
- // Skipped Shutdown_set_scriptpubkey
- // Skipped Shutdown_new
- // Skipped Shutdown_write
+ public void set_scriptpubkey(Shutdown this_ptr, byte[] val) {
+ bindings.Shutdown_set_scriptpubkey(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
+ this.ptrs_to.add(this_ptr);
+ }
+
+ public Shutdown(byte[] channel_id_arg, byte[] scriptpubkey_arg) {
+ super(bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg));
+ }
+
+ public byte[] write(Shutdown obj) {
+ byte[] ret = bindings.Shutdown_write(obj == null ? 0 : obj.ptr & ~1);
+ this.ptrs_to.add(obj);
+ return ret;
+ }
+
public Shutdown(byte[] ser) {
super(bindings.Shutdown_read(ser));
}