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_ChannelFeaturesDecodeErrorZ.java
diff --git
a/src/main/java/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.java
b/src/main/java/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.java
index 5041048b06e644f55a485d2327bc922c4110d72d..01f1801e96f3c007e4a467f2f46272daac268742 100644
(file)
--- a/
src/main/java/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.java
+++ b/
src/main/java/org/ldk/structs/Result_ChannelFeaturesDecodeErrorZ.java
@@
-13,7
+13,7
@@
public class Result_ChannelFeaturesDecodeErrorZ extends CommonBase {
}
static Result_ChannelFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
}
static Result_ChannelFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
- if (bindings.
LDKCResult_ChannelFeaturesDecodeErrorZ_result
_ok(ptr)) {
+ if (bindings.
CResult_ChannelFeaturesDecodeErrorZ_is
_ok(ptr)) {
return new Result_ChannelFeaturesDecodeErrorZ_OK(null, ptr);
} else {
return new Result_ChannelFeaturesDecodeErrorZ_Err(null, ptr);
return new Result_ChannelFeaturesDecodeErrorZ_OK(null, ptr);
} else {
return new Result_ChannelFeaturesDecodeErrorZ_Err(null, ptr);
@@
-24,7
+24,7
@@
public class Result_ChannelFeaturesDecodeErrorZ extends CommonBase {
private Result_ChannelFeaturesDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_ChannelFeaturesDecodeErrorZ_get_ok(ptr);
private Result_ChannelFeaturesDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_ChannelFeaturesDecodeErrorZ_get_ok(ptr);
- ChannelFeatures res_hu_conv = n
ew ChannelFeatures(null, res);
+ ChannelFeatures res_hu_conv = n
ull; if (res < 0 || res > 4096) { res_hu_conv = new ChannelFeatures(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_ChannelFeaturesDecodeErrorZ extends CommonBase {
private Result_ChannelFeaturesDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_ChannelFeaturesDecodeErrorZ_get_err(ptr);
private Result_ChannelFeaturesDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_ChannelFeaturesDecodeErrorZ_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_ChannelFeaturesDecodeErrorZ extends CommonBase {
*/
public static Result_ChannelFeaturesDecodeErrorZ ok(ChannelFeatures o) {
long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
*/
public static Result_ChannelFeaturesDecodeErrorZ ok(ChannelFeatures o) {
long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
- if (ret >= 0 && ret <
1024
) { return null; }
+ if (ret >= 0 && ret <
= 4096
) { return null; }
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
@@
-56,9
+56,17
@@
public class Result_ChannelFeaturesDecodeErrorZ extends CommonBase {
*/
public static Result_ChannelFeaturesDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
*/
public static Result_ChannelFeaturesDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_ChannelFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
- if (ret >= 0 && ret <
1024
) { return null; }
+ if (ret >= 0 && ret <
= 4096
) { return null; }
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_ChannelFeaturesDecodeErrorZ ret_hu_conv = Result_ChannelFeaturesDecodeErrorZ.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_ChannelFeaturesDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
}
}