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
/
NodeFeatures.java
diff --git
a/src/main/java/org/ldk/structs/NodeFeatures.java
b/src/main/java/org/ldk/structs/NodeFeatures.java
index 75134c928b4fc8f0cbb66cecf2e5bca69130d70c..ebd78144b187394dd7c8441ff753908cf3bbebd5 100644
(file)
--- a/
src/main/java/org/ldk/structs/NodeFeatures.java
+++ b/
src/main/java/org/ldk/structs/NodeFeatures.java
@@
-35,8
+35,8
@@
public class NodeFeatures extends CommonBase {
*/
public NodeFeatures clone() {
long ret = bindings.NodeFeatures_clone(this.ptr);
*/
public NodeFeatures clone() {
long ret = bindings.NodeFeatures_clone(this.ptr);
- if (ret
< 1024
) { return null; }
- NodeFeatures ret_hu_conv = n
ew NodeFeatures(null, ret);
+ if (ret
>= 0 && ret <= 4096
) { return null; }
+ NodeFeatures ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeFeatures(null, ret); }
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
@@
-46,8
+46,8
@@
public class NodeFeatures extends CommonBase {
*/
public static NodeFeatures empty() {
long ret = bindings.NodeFeatures_empty();
*/
public static NodeFeatures empty() {
long ret = bindings.NodeFeatures_empty();
- if (ret
< 1024
) { return null; }
- NodeFeatures ret_hu_conv = n
ew NodeFeatures(null, ret);
+ if (ret
>= 0 && ret <= 4096
) { return null; }
+ NodeFeatures ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeFeatures(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;
}
@@
-57,8
+57,8
@@
public class NodeFeatures extends CommonBase {
*/
public static NodeFeatures known() {
long ret = bindings.NodeFeatures_known();
*/
public static NodeFeatures known() {
long ret = bindings.NodeFeatures_known();
- if (ret
< 1024
) { return null; }
- NodeFeatures ret_hu_conv = n
ew NodeFeatures(null, ret);
+ if (ret
>= 0 && ret <= 4096
) { return null; }
+ NodeFeatures ret_hu_conv = n
ull; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeFeatures(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;
}
@@
-93,7
+93,7
@@
public class NodeFeatures extends CommonBase {
*/
public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser) {
long ret = bindings.NodeFeatures_read(ser);
*/
public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser) {
long ret = bindings.NodeFeatures_read(ser);
- 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;
}