- public ReplyShortChannelIdsEnd(byte[] chain_hash_arg, boolean full_information_arg) {
- super(bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg));
+ /**
+ * Constructs a new ReplyShortChannelIdsEnd given each field
+ */
+ public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, boolean full_information_arg) {
+ long ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, 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); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;