- public void set_signature(CommitmentSigned this_ptr, byte[] val) {
- bindings.CommitmentSigned_set_signature(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Constructs a new CommitmentSigned given each field
+ */
+ public static CommitmentSigned constructor_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg) {
+ long ret = bindings.CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
+ CommitmentSigned ret_hu_conv = new CommitmentSigned(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a copy of the CommitmentSigned
+ */
+ public CommitmentSigned clone() {
+ long ret = bindings.CommitmentSigned_clone(this.ptr);
+ CommitmentSigned ret_hu_conv = new CommitmentSigned(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Serialize the CommitmentSigned object into a byte array which can be read by CommitmentSigned_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.CommitmentSigned_write(this.ptr);
+ return ret;