Update auto-generated bindings with new upstream.
[ldk-java] / src / main / java / org / ldk / structs / NodeFeatures.java
index 71281dd78c277f972c9042d9bd921d9583927fd1..a32f9680c0fdb4dd970c27fefc335321df1c19de 100644 (file)
@@ -11,7 +11,39 @@ public class NodeFeatures extends CommonBase {
        @Override @SuppressWarnings("deprecation")
        protected void finalize() throws Throwable {
                super.finalize();
-               bindings.NodeFeatures_free(ptr);
+               if (ptr != 0) { bindings.NodeFeatures_free(ptr); }
+       }
+
+       public NodeFeatures clone() {
+               long ret = bindings.NodeFeatures_clone(this.ptr);
+               NodeFeatures ret_hu_conv = new NodeFeatures(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+       public static NodeFeatures constructor_empty() {
+               long ret = bindings.NodeFeatures_empty();
+               NodeFeatures ret_hu_conv = new NodeFeatures(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public static NodeFeatures constructor_known() {
+               long ret = bindings.NodeFeatures_known();
+               NodeFeatures ret_hu_conv = new NodeFeatures(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public byte[] write() {
+               byte[] ret = bindings.NodeFeatures_write(this.ptr);
+               return ret;
+       }
+
+       public static Result_NodeFeaturesDecodeErrorZ constructor_read(byte[] ser) {
+               long ret = bindings.NodeFeatures_read(ser);
+               Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
        }
 
 }