Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / GossipTimestampFilter.java
index f63dbdd3fa260e1f4f2971f0f60bac49d1908295..f4bdfd4f88a3989e10fe88fe1278eab595f87755 100644 (file)
@@ -68,8 +68,9 @@ public class GossipTimestampFilter extends CommonBase {
        /**
         * Constructs a new GossipTimestampFilter given each field
         */
-       public static GossipTimestampFilter constructor_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg) {
+       public static GossipTimestampFilter of(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg) {
                long ret = bindings.GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
+               if (ret < 1024) { return null; }
                GossipTimestampFilter ret_hu_conv = new GossipTimestampFilter(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
@@ -80,6 +81,7 @@ public class GossipTimestampFilter extends CommonBase {
         */
        public GossipTimestampFilter clone() {
                long ret = bindings.GossipTimestampFilter_clone(this.ptr);
+               if (ret < 1024) { return null; }
                GossipTimestampFilter ret_hu_conv = new GossipTimestampFilter(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -88,8 +90,9 @@ public class GossipTimestampFilter extends CommonBase {
        /**
         * Read a GossipTimestampFilter from a byte array, created by GossipTimestampFilter_write
         */
-       public static Result_GossipTimestampFilterDecodeErrorZ constructor_read(byte[] ser) {
+       public static Result_GossipTimestampFilterDecodeErrorZ read(byte[] ser) {
                long ret = bindings.GossipTimestampFilter_read(ser);
+               if (ret < 1024) { return null; }
                Result_GossipTimestampFilterDecodeErrorZ ret_hu_conv = Result_GossipTimestampFilterDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }