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 b852fbaf6ad1f0386ffecc6edd3c4085e4d94915..8212fec0170bb9c9aeb82beae84829877db1ce99 100644
(file)
--- a/
src/main/java/org/ldk/structs/Ping.java
+++ b/
src/main/java/org/ldk/structs/Ping.java
@@
-4,6
+4,7
@@
import org.ldk.impl.bindings;
import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import javax.annotation.Nullable;
/**
/**
@@
-53,19
+54,26
@@
public class Ping extends CommonBase {
/**
* Constructs a new Ping given each field
*/
/**
* Constructs a new Ping given each field
*/
- public static Ping
constructor_new
(short ponglen_arg, short byteslen_arg) {
+ public static Ping
of
(short ponglen_arg, short byteslen_arg) {
long ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
long ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
- Ping ret_hu_conv = new Ping(null, ret);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Ping ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Ping(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;
}
+ long clone_ptr() {
+ long ret = bindings.Ping_clone_ptr(this.ptr);
+ return ret;
+ }
+
/**
* Creates a copy of the Ping
*/
public Ping clone() {
long ret = bindings.Ping_clone(this.ptr);
/**
* Creates a copy of the Ping
*/
public Ping clone() {
long ret = bindings.Ping_clone(this.ptr);
- Ping ret_hu_conv = new Ping(null, ret);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Ping ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Ping(null, ret); }
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
@@
-81,8
+89,9
@@
public class Ping extends CommonBase {
/**
* Read a Ping from a byte array, created by Ping_write
*/
/**
* Read a Ping from a byte array, created by Ping_write
*/
- public static Result_PingDecodeErrorZ
constructor_
read(byte[] ser) {
+ public static Result_PingDecodeErrorZ read(byte[] ser) {
long ret = bindings.Ping_read(ser);
long ret = bindings.Ping_read(ser);
+ if (ret >= 0 && ret <= 4096) { 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;
}