- bindings.ReplyChannelRange_set_chain_hash(this.ptr, InternalUtils.check_arr_len(val, 32));
+ bindings.ReplyChannelRange_set_chain_hash(this.ptr, InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(val, 32)));
* Constructs a new ReplyChannelRange given each field
*/
public static ReplyChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, bool sync_complete_arg, long[] short_channel_ids_arg) {
* Constructs a new ReplyChannelRange given each field
*/
public static ReplyChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, bool 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);
+ long ret = bindings.ReplyChannelRange_new(InternalUtils.encodeUint8Array(InternalUtils.check_arr_len(chain_hash_arg, 32)), first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, InternalUtils.encodeUint64Array(short_channel_ids_arg));
GC.KeepAlive(chain_hash_arg);
GC.KeepAlive(first_blocknum_arg);
GC.KeepAlive(number_of_blocks_arg);
GC.KeepAlive(chain_hash_arg);
GC.KeepAlive(first_blocknum_arg);
GC.KeepAlive(number_of_blocks_arg);
/**
* Checks if two ReplyChannelRanges contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.ReplyChannelRange b) {
/**
* Checks if two ReplyChannelRanges contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.ReplyChannelRange b) {
* Read a ReplyChannelRange from a byte array, created by ReplyChannelRange_write
*/
public static Result_ReplyChannelRangeDecodeErrorZ read(byte[] ser) {
* Read a ReplyChannelRange from a byte array, created by ReplyChannelRange_write
*/
public static Result_ReplyChannelRangeDecodeErrorZ read(byte[] ser) {
GC.KeepAlive(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
GC.KeepAlive(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);