Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[ldk-java] / src / main / java / org / ldk / structs / Init.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class Init extends CommonBase {
7         Init(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 super.finalize();
11                 bindings.Init_free(ptr);
12         }
13
14         public Init(Init orig) {
15                 super(bindings.Init_clone(orig == null ? 0 : orig.ptr & ~1));
16                 this.ptrs_to.add(orig);
17         }
18
19         public byte[] write(Init obj) {
20                 byte[] ret = bindings.Init_write(obj == null ? 0 : obj.ptr & ~1);
21                 this.ptrs_to.add(obj);
22                 return ret;
23         }
24
25         public Init(byte[] ser) {
26                 super(bindings.Init_read(ser));
27         }
28
29 }