X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FHTLCUpdate.java;h=f860f5dd8d464efbb8c23af4ee182f3a0d4d12ae;hb=3a507eb07003be3e6714e8a87fb397c09b401ce9;hp=2f5fb3e3ce4db56c860c3fae849c121fb0c1e664;hpb=aa0e2aade37133339f4113a0cd7465b111f0a0d0;p=ldk-java diff --git a/src/main/java/org/ldk/structs/HTLCUpdate.java b/src/main/java/org/ldk/structs/HTLCUpdate.java index 2f5fb3e3..f860f5dd 100644 --- a/src/main/java/org/ldk/structs/HTLCUpdate.java +++ b/src/main/java/org/ldk/structs/HTLCUpdate.java @@ -14,22 +14,22 @@ public class HTLCUpdate extends CommonBase { if (ptr != 0) { bindings.HTLCUpdate_free(ptr); } } - public static HTLCUpdate constructor_clone(HTLCUpdate orig) { - long ret = bindings.HTLCUpdate_clone(orig == null ? 0 : orig.ptr & ~1); + public HTLCUpdate clone() { + long ret = bindings.HTLCUpdate_clone(this.ptr); HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret); - ret_hu_conv.ptrs_to.add(orig); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } - public byte[] write(HTLCUpdate obj) { - byte[] ret = bindings.HTLCUpdate_write(obj == null ? 0 : obj.ptr & ~1); - this.ptrs_to.add(obj); + public byte[] write() { + byte[] ret = bindings.HTLCUpdate_write(this.ptr); return ret; } public static HTLCUpdate constructor_read(byte[] ser) { long ret = bindings.HTLCUpdate_read(ser); HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }