1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class ClosingSigned extends CommonBase {
10 ClosingSigned(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ClosingSigned_free(ptr); }
17 public static ClosingSigned constructor_clone(ClosingSigned orig) {
18 long ret = bindings.ClosingSigned_clone(orig == null ? 0 : orig.ptr & ~1);
19 ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
20 ret_hu_conv.ptrs_to.add(orig);
24 public byte[] get_channel_id() {
25 byte[] ret = bindings.ClosingSigned_get_channel_id(this.ptr);
29 public void set_channel_id(byte[] val) {
30 bindings.ClosingSigned_set_channel_id(this.ptr, val);
33 public long get_fee_satoshis() {
34 long ret = bindings.ClosingSigned_get_fee_satoshis(this.ptr);
38 public void set_fee_satoshis(long val) {
39 bindings.ClosingSigned_set_fee_satoshis(this.ptr, val);
42 public byte[] get_signature() {
43 byte[] ret = bindings.ClosingSigned_get_signature(this.ptr);
47 public void set_signature(byte[] val) {
48 bindings.ClosingSigned_set_signature(this.ptr, val);
51 public static ClosingSigned constructor_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg) {
52 long ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg);
53 ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
57 public byte[] write(ClosingSigned obj) {
58 byte[] ret = bindings.ClosingSigned_write(obj == null ? 0 : obj.ptr & ~1);
59 this.ptrs_to.add(obj);
63 public static ClosingSigned constructor_read(byte[] ser) {
64 long ret = bindings.ClosingSigned_read(ser);
65 ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);