Convert slices - requires some machinery to call Release, but otherwise not bad
[ldk-java] / src / main / java / org / ldk / structs / ReplyChannelRange.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class ReplyChannelRange extends CommonBase {
7         ReplyChannelRange(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 bindings.ReplyChannelRange_free(ptr); super.finalize();
11         }
12
13         public ReplyChannelRange(ReplyChannelRange orig) {
14                 super(bindings.ReplyChannelRange_clone(orig.ptr & ~1));
15                 this.ptrs_to.add(orig);
16         }
17
18         public byte[] get_chain_hash(ReplyChannelRange this_ptr) {
19                 byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this_ptr.ptr & ~1);
20                 this.ptrs_to.add(this_ptr);
21                 return ret;
22         }
23
24         public void set_chain_hash(ReplyChannelRange this_ptr, byte[] val) {
25                 bindings.ReplyChannelRange_set_chain_hash(this_ptr.ptr & ~1, val);
26                 this.ptrs_to.add(this_ptr);
27         }
28
29         public int get_first_blocknum(ReplyChannelRange this_ptr) {
30                 int ret = bindings.ReplyChannelRange_get_first_blocknum(this_ptr.ptr & ~1);
31                 this.ptrs_to.add(this_ptr);
32                 return ret;
33         }
34
35         public void set_first_blocknum(ReplyChannelRange this_ptr, int val) {
36                 bindings.ReplyChannelRange_set_first_blocknum(this_ptr.ptr & ~1, val);
37                 this.ptrs_to.add(this_ptr);
38         }
39
40         public int get_number_of_blocks(ReplyChannelRange this_ptr) {
41                 int ret = bindings.ReplyChannelRange_get_number_of_blocks(this_ptr.ptr & ~1);
42                 this.ptrs_to.add(this_ptr);
43                 return ret;
44         }
45
46         public void set_number_of_blocks(ReplyChannelRange this_ptr, int val) {
47                 bindings.ReplyChannelRange_set_number_of_blocks(this_ptr.ptr & ~1, val);
48                 this.ptrs_to.add(this_ptr);
49         }
50
51         public boolean get_full_information(ReplyChannelRange this_ptr) {
52                 boolean ret = bindings.ReplyChannelRange_get_full_information(this_ptr.ptr & ~1);
53                 this.ptrs_to.add(this_ptr);
54                 return ret;
55         }
56
57         public void set_full_information(ReplyChannelRange this_ptr, boolean val) {
58                 bindings.ReplyChannelRange_set_full_information(this_ptr.ptr & ~1, val);
59                 this.ptrs_to.add(this_ptr);
60         }
61
62         // Skipped ReplyChannelRange_set_short_channel_ids
63         // Skipped ReplyChannelRange_new
64         public ReplyChannelRange(byte[] ser) {
65                 super(bindings.ReplyChannelRange_read(ser));
66         }
67
68         // Skipped ReplyChannelRange_write
69 }