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