if (ptr != 0) { bindings.HTLCOutputInCommitment_free(ptr); }
}
- public HTLCOutputInCommitment clone() {
- long ret = bindings.HTLCOutputInCommitment_clone(this.ptr);
- HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
- ret_hu_conv.ptrs_to.add(this);
- return ret_hu_conv;
- }
-
public boolean get_offered() {
boolean ret = bindings.HTLCOutputInCommitment_get_offered(this.ptr);
return ret;
bindings.HTLCOutputInCommitment_set_payment_hash(this.ptr, val);
}
+ public HTLCOutputInCommitment clone() {
+ long ret = bindings.HTLCOutputInCommitment_clone(this.ptr);
+ HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
public byte[] write() {
byte[] ret = bindings.HTLCOutputInCommitment_write(this.ptr);
return ret;
}
- public static HTLCOutputInCommitment constructor_read(byte[] ser) {
+ public static Result_HTLCOutputInCommitmentDecodeErrorZ constructor_read(byte[] ser) {
long ret = bindings.HTLCOutputInCommitment_read(ser);
- HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}