1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class ReplyChannelRange extends CommonBase {
10 ReplyChannelRange(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ReplyChannelRange_free(ptr); }
17 public ReplyChannelRange clone() {
18 long ret = bindings.ReplyChannelRange_clone(this.ptr);
19 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
23 public byte[] get_chain_hash() {
24 byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
28 public void set_chain_hash(byte[] val) {
29 bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
32 public int get_first_blocknum() {
33 int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
37 public void set_first_blocknum(int val) {
38 bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
41 public int get_number_of_blocks() {
42 int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
46 public void set_number_of_blocks(int val) {
47 bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
50 public boolean get_full_information() {
51 boolean ret = bindings.ReplyChannelRange_get_full_information(this.ptr);
55 public void set_full_information(boolean val) {
56 bindings.ReplyChannelRange_set_full_information(this.ptr, val);
59 public void set_short_channel_ids(long[] val) {
60 bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
63 public static ReplyChannelRange constructor_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean full_information_arg, long[] short_channel_ids_arg) {
64 long ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
65 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
69 public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
70 long ret = bindings.ReplyChannelRange_read(ser);
71 Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
75 public byte[] write() {
76 byte[] ret = bindings.ReplyChannelRange_write(this.ptr);