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