- public boolean get_full_information(ReplyChannelRange this_ptr) {
- boolean ret = bindings.ReplyChannelRange_get_full_information(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The short_channel_ids in the channel range
+ */
+ public void set_short_channel_ids(long[] val) {
+ bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * Constructs a new ReplyChannelRange given each field
+ */
+ public static ReplyChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean sync_complete_arg, long[] short_channel_ids_arg) {
+ long ret = bindings.ReplyChannelRange_new(InternalUtils.check_arr_len(chain_hash_arg, 32), first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
+ Reference.reachabilityFence(chain_hash_arg);
+ Reference.reachabilityFence(first_blocknum_arg);
+ Reference.reachabilityFence(number_of_blocks_arg);
+ Reference.reachabilityFence(sync_complete_arg);
+ Reference.reachabilityFence(short_channel_ids_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ReplyChannelRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ReplyChannelRange(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.ReplyChannelRange_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);