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