- public byte[] get_signature(ClosingSigned this_ptr) {
- byte[] ret = bindings.ClosingSigned_get_signature(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * Constructs a new ClosingSigned given each field
+ */
+ public static ClosingSigned of(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg) {
+ long ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg);
+ ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;