- public byte[] write(UpdateFailHTLC obj) {
- byte[] ret = bindings.UpdateFailHTLC_write(obj == null ? 0 : obj.ptr & ~1);
- this.ptrs_to.add(obj);
+ /**
+ * Creates a copy of the UpdateFailHTLC
+ */
+ public UpdateFailHTLC clone() {
+ long ret = bindings.UpdateFailHTLC_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ UpdateFailHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UpdateFailHTLC(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Serialize the UpdateFailHTLC object into a byte array which can be read by UpdateFailHTLC_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.UpdateFailHTLC_write(this.ptr);