X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FReplyShortChannelIdsEnd.java;h=224cc61b0acc00d87c770e4b5f426921b9c44074;hb=2fd040ea4089280c50161a98fca36f254f6791b9;hp=947ca85acdab71a920ba860c490f3f792519b24a;hpb=110f2f104ba8fc34caa7e34e04737f36f064b050;p=ldk-java diff --git a/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java b/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java index 947ca85a..224cc61b 100644 --- a/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java +++ b/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java @@ -11,13 +11,12 @@ public class ReplyShortChannelIdsEnd extends CommonBase { @Override @SuppressWarnings("deprecation") protected void finalize() throws Throwable { super.finalize(); - bindings.ReplyShortChannelIdsEnd_free(ptr); + if (ptr != 0) { bindings.ReplyShortChannelIdsEnd_free(ptr); } } - public static ReplyShortChannelIdsEnd constructor_clone(ReplyShortChannelIdsEnd orig) { - long ret = bindings.ReplyShortChannelIdsEnd_clone(orig == null ? 0 : orig.ptr & ~1); + public ReplyShortChannelIdsEnd clone() { + long ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr); ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret); - ret_hu_conv.ptrs_to.add(orig); return ret_hu_conv; } @@ -45,15 +44,14 @@ public class ReplyShortChannelIdsEnd extends CommonBase { return ret_hu_conv; } - public static ReplyShortChannelIdsEnd constructor_read(byte[] ser) { + public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_read(byte[] ser) { long ret = bindings.ReplyShortChannelIdsEnd_read(ser); - ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret); + Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; } - public byte[] write(ReplyShortChannelIdsEnd obj) { - byte[] ret = bindings.ReplyShortChannelIdsEnd_write(obj == null ? 0 : obj.ptr & ~1); - this.ptrs_to.add(obj); + public byte[] write() { + byte[] ret = bindings.ReplyShortChannelIdsEnd_write(this.ptr); return ret; }