projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-generated bindings
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.java
diff --git
a/src/main/java/org/ldk/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.java
b/src/main/java/org/ldk/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.java
index 14c3f284ea3f97f1833a32b530a455db305edbac..c3437d057aaa28e61e8819a18cb5416d73a5cab7 100644
(file)
--- a/
src/main/java/org/ldk/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.java
+++ b/
src/main/java/org/ldk/structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.java
@@
-13,7
+13,7
@@
public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB
}
static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constr_from_ptr(long ptr) {
}
static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ constr_from_ptr(long ptr) {
- if (bindings.
LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_result
_ok(ptr)) {
+ if (bindings.
CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is
_ok(ptr)) {
return new Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_OK(null, ptr);
} else {
return new Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_Err(null, ptr);
return new Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_OK(null, ptr);
} else {
return new Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_Err(null, ptr);
@@
-35,7
+35,7
@@
public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB
private Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(ptr);
private Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(ptr);
- DecodeError err_hu_conv = n
ew DecodeError(null, err);
+ DecodeError err_hu_conv = n
ull; if (err < 0 || err > 4096) { err_hu_conv = new DecodeError(null, err); }
err_hu_conv.ptrs_to.add(this);
this.err = err_hu_conv;
}
err_hu_conv.ptrs_to.add(this);
this.err = err_hu_conv;
}
@@
-46,7
+46,7
@@
public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB
*/
public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ok(TwoTuple_BlockHashChannelManagerZ o) {
long ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o != null ? o.ptr : 0);
*/
public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ok(TwoTuple_BlockHashChannelManagerZ o) {
long ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o != null ? o.ptr : 0);
- if (ret
< 1024
) { return null; }
+ if (ret
>= 0 && ret <= 4096
) { return null; }
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
@@
-56,10
+56,17
@@
public class Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ extends CommonB
*/
public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
*/
public static Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
- if (ret
< 1024
) { return null; }
+ if (ret
>= 0 && ret <= 4096
) { return null; }
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ ret_hu_conv = Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.constr_from_ptr(ret);
- ret_hu_conv.ptrs_to.add(e);
return ret_hu_conv;
}
return ret_hu_conv;
}
+ /**
+ * Checks if the given object is currently in the success state
+ */
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
}
}