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 to 0.0.103
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
Init.java
diff --git
a/src/main/java/org/ldk/structs/Init.java
b/src/main/java/org/ldk/structs/Init.java
index b4e5157801d9ef2b4a30e8b1aca6abe234a2e587..69f97fa9948ec2d194ac31f40d44b72cdf04f71c 100644
(file)
--- a/
src/main/java/org/ldk/structs/Init.java
+++ b/
src/main/java/org/ldk/structs/Init.java
@@
-24,8
+24,8
@@
public class Init extends CommonBase {
*/
public InitFeatures get_features() {
long ret = bindings.Init_get_features(this.ptr);
*/
public InitFeatures get_features() {
long ret = bindings.Init_get_features(this.ptr);
- if (ret
< 1024
) { return null; }
- InitFeatures ret_hu_conv = n
ew InitFeatures(null, ret);
+ if (ret
>= 0 && ret <= 4096
) { return null; }
+ InitFeatures ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new InitFeatures(null, ret); }
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
@@
-42,8
+42,8
@@
public class Init extends CommonBase {
*/
public static Init of(InitFeatures features_arg) {
long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr & ~1);
*/
public static Init of(InitFeatures features_arg) {
long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr & ~1);
- if (ret
< 1024
) { return null; }
- Init ret_hu_conv = n
ew Init(null, ret);
+ if (ret
>= 0 && ret <= 4096
) { return null; }
+ Init ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new Init(null, ret); }
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
@@
-53,8
+53,8
@@
public class Init extends CommonBase {
*/
public Init clone() {
long ret = bindings.Init_clone(this.ptr);
*/
public Init clone() {
long ret = bindings.Init_clone(this.ptr);
- if (ret
< 1024
) { return null; }
- Init ret_hu_conv = n
ew Init(null, ret);
+ if (ret
>= 0 && ret <= 4096
) { return null; }
+ Init ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new Init(null, ret); }
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
@@
-72,7
+72,7
@@
public class Init extends CommonBase {
*/
public static Result_InitDecodeErrorZ read(byte[] ser) {
long ret = bindings.Init_read(ser);
*/
public static Result_InitDecodeErrorZ read(byte[] ser) {
long ret = bindings.Init_read(ser);
- if (ret
< 1024
) { return null; }
+ if (ret
>= 0 && ret <= 4096
) { return null; }
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}