import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import javax.annotation.Nullable;
/**
*/
public OpenChannel clone() {
long ret = bindings.OpenChannel_clone(this.ptr);
+ if (ret >= 0 && ret < 1024) { return null; }
OpenChannel ret_hu_conv = new OpenChannel(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
/**
* Read a OpenChannel from a byte array, created by OpenChannel_write
*/
- public static Result_OpenChannelDecodeErrorZ constructor_read(byte[] ser) {
+ public static Result_OpenChannelDecodeErrorZ read(byte[] ser) {
long ret = bindings.OpenChannel_read(ser);
+ if (ret >= 0 && ret < 1024) { return null; }
Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}