- long ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg == null ? 0 : fee_range_arg.ptr & ~1);
- if (ret < 1024) { return null; }
- ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
+ long ret = bindings.ClosingSigned_new(InternalUtils.check_arr_len(channel_id_arg, 32), fee_satoshis_arg, InternalUtils.check_arr_len(signature_arg, 64), fee_range_arg == null ? 0 : fee_range_arg.ptr & ~1);
+ Reference.reachabilityFence(channel_id_arg);
+ Reference.reachabilityFence(fee_satoshis_arg);
+ Reference.reachabilityFence(signature_arg);
+ Reference.reachabilityFence(fee_range_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ClosingSigned ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ClosingSigned(null, ret); }