2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class HTLCUpdate extends CommonBase {
6 HTLCUpdate(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.HTLCUpdate_free(ptr); }
13 public HTLCUpdate clone() {
14 uint32_t ret = bindings.HTLCUpdate_clone(this.ptr);
15 HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret);
19 public byte[] write() {
20 byte[] ret = bindings.HTLCUpdate_write(this.ptr);
24 public static HTLCUpdate constructor_read(byte[] ser) {
25 uint32_t ret = bindings.HTLCUpdate_read(ser);
26 HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret);