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
/
Ping.java
diff --git
a/src/main/java/org/ldk/structs/Ping.java
b/src/main/java/org/ldk/structs/Ping.java
index 20fd551986515338812def0b4218133c6eed731d..6c17f2fb90a9bf25abb4eea08afd4ecf77a70759 100644
(file)
--- a/
src/main/java/org/ldk/structs/Ping.java
+++ b/
src/main/java/org/ldk/structs/Ping.java
@@
-56,7
+56,7
@@
public class Ping extends CommonBase {
*/
public static Ping of(short ponglen_arg, short byteslen_arg) {
long ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
*/
public static Ping of(short ponglen_arg, short byteslen_arg) {
long ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
- if (ret < 1024) { return null; }
+ if (ret
>= 0 && ret
< 1024) { return null; }
Ping ret_hu_conv = new Ping(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
Ping ret_hu_conv = new Ping(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
@@
-67,7
+67,7
@@
public class Ping extends CommonBase {
*/
public Ping clone() {
long ret = bindings.Ping_clone(this.ptr);
*/
public Ping clone() {
long ret = bindings.Ping_clone(this.ptr);
- if (ret < 1024) { return null; }
+ if (ret
>= 0 && ret
< 1024) { return null; }
Ping ret_hu_conv = new Ping(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
Ping ret_hu_conv = new Ping(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
@@
-86,7
+86,7
@@
public class Ping extends CommonBase {
*/
public static Result_PingDecodeErrorZ read(byte[] ser) {
long ret = bindings.Ping_read(ser);
*/
public static Result_PingDecodeErrorZ read(byte[] ser) {
long ret = bindings.Ping_read(ser);
- if (ret < 1024) { return null; }
+ if (ret
>= 0 && ret
< 1024) { return null; }
Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_PingDecodeErrorZ ret_hu_conv = Result_PingDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}