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);
- ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
- ret_hu_conv.ptrs_to.add(orig);
- return ret_hu_conv;
- }
-
public byte[] get_chain_hash() {
byte[] ret = bindings.ReplyShortChannelIdsEnd_get_chain_hash(this.ptr);
return ret;
public static ReplyShortChannelIdsEnd constructor_new(byte[] chain_hash_arg, boolean full_information_arg) {
long ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
- public static ReplyShortChannelIdsEnd constructor_read(byte[] ser) {
- long ret = bindings.ReplyShortChannelIdsEnd_read(ser);
+ public ReplyShortChannelIdsEnd clone() {
+ long ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr);
ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_read(byte[] ser) {
+ long ret = bindings.ReplyShortChannelIdsEnd_read(ser);
+ 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;
}