1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class ChannelMonitorUpdate extends CommonBase {
10 ChannelMonitorUpdate(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ChannelMonitorUpdate_free(ptr); }
17 public long get_update_id() {
18 long ret = bindings.ChannelMonitorUpdate_get_update_id(this.ptr);
22 public void set_update_id(long val) {
23 bindings.ChannelMonitorUpdate_set_update_id(this.ptr, val);
26 public ChannelMonitorUpdate clone() {
27 long ret = bindings.ChannelMonitorUpdate_clone(this.ptr);
28 ChannelMonitorUpdate ret_hu_conv = new ChannelMonitorUpdate(null, ret);
29 ret_hu_conv.ptrs_to.add(this);
33 public byte[] write() {
34 byte[] ret = bindings.ChannelMonitorUpdate_write(this.ptr);
38 public static Result_ChannelMonitorUpdateDecodeErrorZ constructor_read(byte[] ser) {
39 long ret = bindings.ChannelMonitorUpdate_read(ser);
40 Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);