b1cca231127e9770abb4ae3b747d5a1e0df7e2cf
[ldk-java] / ts / structs / Init.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class Init extends CommonBase {
6         Init(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.Init_free(ptr); }
11         }
12
13         public Init clone() {
14                 uint32_t ret = bindings.Init_clone(this.ptr);
15                 Init ret_hu_conv = new Init(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] write() {
20                 byte[] ret = bindings.Init_write(this.ptr);
21                 return ret;
22         }
23
24         public static Result_InitDecodeErrorZ constructor_read(byte[] ser) {
25                 uint32_t ret = bindings.Init_read(ser);
26                 Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
27                 return ret_hu_conv;
28         }
29
30 }