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_NodeFeaturesDecodeErrorZ.java
diff --git
a/src/main/java/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.java
b/src/main/java/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.java
index a4463a84c730ff537f0b9f8f2d52b1476cb581db..f121e1240a3612ef2d2623d117f1caee66ce9fa0 100644
(file)
--- a/
src/main/java/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.java
+++ b/
src/main/java/org/ldk/structs/Result_NodeFeaturesDecodeErrorZ.java
@@
-13,7
+13,7
@@
public class Result_NodeFeaturesDecodeErrorZ extends CommonBase {
}
static Result_NodeFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
}
static Result_NodeFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
- if (bindings.
LDKCResult_NodeFeaturesDecodeErrorZ_result
_ok(ptr)) {
+ if (bindings.
CResult_NodeFeaturesDecodeErrorZ_is
_ok(ptr)) {
return new Result_NodeFeaturesDecodeErrorZ_OK(null, ptr);
} else {
return new Result_NodeFeaturesDecodeErrorZ_Err(null, ptr);
return new Result_NodeFeaturesDecodeErrorZ_OK(null, ptr);
} else {
return new Result_NodeFeaturesDecodeErrorZ_Err(null, ptr);
@@
-24,7
+24,7
@@
public class Result_NodeFeaturesDecodeErrorZ extends CommonBase {
private Result_NodeFeaturesDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_NodeFeaturesDecodeErrorZ_get_ok(ptr);
private Result_NodeFeaturesDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_NodeFeaturesDecodeErrorZ_get_ok(ptr);
- NodeFeatures res_hu_conv = n
ew NodeFeatures(null, res);
+ NodeFeatures res_hu_conv = n
ull; if (res < 0 || res > 4096) { res_hu_conv = new NodeFeatures(null, res); }
res_hu_conv.ptrs_to.add(this);
this.res = res_hu_conv;
}
res_hu_conv.ptrs_to.add(this);
this.res = res_hu_conv;
}
@@
-35,7
+35,7
@@
public class Result_NodeFeaturesDecodeErrorZ extends CommonBase {
private Result_NodeFeaturesDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_NodeFeaturesDecodeErrorZ_get_err(ptr);
private Result_NodeFeaturesDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_NodeFeaturesDecodeErrorZ_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_NodeFeaturesDecodeErrorZ extends CommonBase {
*/
public static Result_NodeFeaturesDecodeErrorZ ok(NodeFeatures o) {
long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
*/
public static Result_NodeFeaturesDecodeErrorZ ok(NodeFeatures o) {
long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
- if (ret
< 1024
) { return null; }
+ if (ret
>= 0 && ret <= 4096
) { return null; }
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
@@
-56,9
+56,17
@@
public class Result_NodeFeaturesDecodeErrorZ extends CommonBase {
*/
public static Result_NodeFeaturesDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
*/
public static Result_NodeFeaturesDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_NodeFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
- if (ret
< 1024
) { return null; }
+ if (ret
>= 0 && ret <= 4096
) { return null; }
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
+ /**
+ * Checks if the given object is currently in the success state
+ */
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_NodeFeaturesDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
}
}