1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class HTLCUpdate extends CommonBase {
7 HTLCUpdate(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
11 bindings.HTLCUpdate_free(ptr);
14 public HTLCUpdate(HTLCUpdate orig) {
15 super(bindings.HTLCUpdate_clone(orig == null ? 0 : orig.ptr & ~1));
16 this.ptrs_to.add(orig);
19 public byte[] write(HTLCUpdate obj) {
20 byte[] ret = bindings.HTLCUpdate_write(obj == null ? 0 : obj.ptr & ~1);
21 this.ptrs_to.add(obj);
25 public HTLCUpdate(byte[] ser) {
26 super(bindings.HTLCUpdate_read(ser));