+
import CommonBase from './CommonBase';
import * as bindings from '../bindings' // TODO: figure out location
-public class ReplyChannelRange extends CommonBase {
- ReplyChannelRange(Object _dummy, long ptr) { super(ptr); }
- @Override @SuppressWarnings("deprecation")
- protected void finalize() throws Throwable {
- super.finalize();
- if (ptr != 0) { bindings.ReplyChannelRange_free(ptr); }
- }
+
+ export default class ReplyChannelRange extends CommonBase {
+ constructor(_dummy: object, ptr: number) {
+ super(ptr);
+ }
+
+
+ protected finalize() {
+ super.finalize();
+
+ if (this.ptr != 0) {
+ bindings.ReplyChannelRange_free(this.ptr);
+ }
+ }
public ReplyChannelRange clone() {
- uint32_t ret = bindings.ReplyChannelRange_clone(this.ptr);
- ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
+ number ret = bindings.ReplyChannelRange_clone(this.ptr);
+ const ret_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, ret);
return ret_hu_conv;
}
- public byte[] get_chain_hash() {
- byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
+ public Uint8Array get_chain_hash() {
+ Uint8Array ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
return ret;
}
- public void set_chain_hash(byte[] val) {
+ public void set_chain_hash(Uint8Array val) {
bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
}
- public int get_first_blocknum() {
- int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
+ public number get_first_blocknum() {
+ number ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
return ret;
}
- public void set_first_blocknum(int val) {
+ public void set_first_blocknum(number val) {
bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
}
- public int get_number_of_blocks() {
- int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
+ public number get_number_of_blocks() {
+ number ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
return ret;
}
- public void set_number_of_blocks(int val) {
+ public void set_number_of_blocks(number val) {
bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
}
bindings.ReplyChannelRange_set_full_information(this.ptr, val);
}
- public void set_short_channel_ids(long[] val) {
+ public void set_short_channel_ids(number[] val) {
bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
}
- 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) {
- uint32_t ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
- ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
+ public static ReplyChannelRange constructor_new(Uint8Array chain_hash_arg, number first_blocknum_arg, number number_of_blocks_arg, boolean full_information_arg, number[] short_channel_ids_arg) {
+ number ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
+ const ret_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, ret);
return ret_hu_conv;
}
- public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
- uint32_t ret = bindings.ReplyChannelRange_read(ser);
+ public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(Uint8Array ser) {
+ number ret = bindings.ReplyChannelRange_read(ser);
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
- public byte[] write() {
- byte[] ret = bindings.ReplyChannelRange_write(this.ptr);
+ public Uint8Array write() {
+ Uint8Array ret = bindings.ReplyChannelRange_write(this.ptr);
return ret;
}