- public static ReplyShortChannelIdsEnd constructor_new(byte[] chain_hash_arg, boolean full_information_arg) {
- long ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
- ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
+ /**
+ * Constructs a new ReplyShortChannelIdsEnd given each field
+ */
+ public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, boolean full_information_arg) {
+ long ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.check_arr_len(chain_hash_arg, 32), full_information_arg);
+ Reference.reachabilityFence(chain_hash_arg);
+ Reference.reachabilityFence(full_information_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ReplyShortChannelIdsEnd ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret); }