1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
7 import javax.annotation.Nullable;
11 * An error in decoding a message or struct.
13 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
14 public class DecodeError extends CommonBase {
15 DecodeError(Object _dummy, long ptr) { super(ptr); }
16 @Override @SuppressWarnings("deprecation")
17 protected void finalize() throws Throwable {
19 if (ptr != 0) { bindings.DecodeError_free(ptr); }
23 * Creates a copy of the DecodeError
25 public DecodeError clone() {
26 long ret = bindings.DecodeError_clone(this.ptr);
27 if (ret < 1024) { return null; }
28 DecodeError ret_hu_conv = new DecodeError(null, ret);
29 ret_hu_conv.ptrs_to.add(this);