- public int get_number_of_blocks(QueryChannelRange this_ptr) {
- int ret = bindings.QueryChannelRange_get_number_of_blocks(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Constructs a new QueryChannelRange given each field
+ */
+ public static QueryChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg) {
+ long ret = bindings.QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
+ QueryChannelRange ret_hu_conv = new QueryChannelRange(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a copy of the QueryChannelRange
+ */
+ public QueryChannelRange clone() {
+ long ret = bindings.QueryChannelRange_clone(this.ptr);
+ QueryChannelRange ret_hu_conv = new QueryChannelRange(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * \n\t * Calculates the overflow safe ending block height for the query.\n\t * Overflow returns `0xffffffff`, otherwise returns `first_blocknum + number_of_blocks`\n\t
+ */
+ public int end_blocknum() {
+ int ret = bindings.QueryChannelRange_end_blocknum(this.ptr);