Update auto-generated bindings to 0.0.103
[ldk-java] / src / main / java / org / ldk / structs / Init.java
index cb6f8727677ea445408b0dfb583e9e7dfb2c8435..69f97fa9948ec2d194ac31f40d44b72cdf04f71c 100644 (file)
@@ -24,8 +24,8 @@ public class Init extends CommonBase {
         */
        public InitFeatures get_features() {
                long ret = bindings.Init_get_features(this.ptr);
-               if (ret >= 0 && ret < 1024) { return null; }
-               InitFeatures ret_hu_conv = new InitFeatures(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new InitFeatures(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
@@ -42,8 +42,8 @@ public class Init extends CommonBase {
         */
        public static Init of(InitFeatures features_arg) {
                long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr & ~1);
-               if (ret >= 0 && ret < 1024) { return null; }
-               Init ret_hu_conv = new Init(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               Init ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Init(null, ret); }
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
@@ -53,8 +53,8 @@ public class Init extends CommonBase {
         */
        public Init clone() {
                long ret = bindings.Init_clone(this.ptr);
-               if (ret >= 0 && ret < 1024) { return null; }
-               Init ret_hu_conv = new Init(null, ret);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               Init ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Init(null, ret); }
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
@@ -72,7 +72,7 @@ public class Init extends CommonBase {
         */
        public static Result_InitDecodeErrorZ read(byte[] ser) {
                long ret = bindings.Init_read(ser);
-               if (ret >= 0 && ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }