2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class Init extends CommonBase {
6 Init(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.Init_free(ptr); }
14 uint32_t ret = bindings.Init_clone(this.ptr);
15 Init ret_hu_conv = new Init(null, ret);
19 public byte[] write() {
20 byte[] ret = bindings.Init_write(this.ptr);
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);