- public byte[] write(HTLCOutputInCommitment obj) {
- byte[] ret = bindings.HTLCOutputInCommitment_write(obj == null ? 0 : obj.ptr & ~1);
- this.ptrs_to.add(obj);
+ /**
+ * Creates a copy of the HTLCOutputInCommitment
+ */
+ 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;
+ }
+
+ /**
+ * Serialize the HTLCOutputInCommitment object into a byte array which can be read by HTLCOutputInCommitment_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.HTLCOutputInCommitment_write(this.ptr);