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
/
Pong.java
diff --git
a/src/main/java/org/ldk/structs/Pong.java
b/src/main/java/org/ldk/structs/Pong.java
index f95040f8e0dfaf8ca808291ea596bcdf1aff6a95..0ca9c7ea2e293a80de5a0512225dc390d13d85bd 100644
(file)
--- a/
src/main/java/org/ldk/structs/Pong.java
+++ b/
src/main/java/org/ldk/structs/Pong.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;
/**
/**
@@
-40,6
+41,7
@@
public class Pong extends CommonBase {
*/
public static Pong of(short byteslen_arg) {
long ret = bindings.Pong_new(byteslen_arg);
*/
public static Pong of(short byteslen_arg) {
long ret = bindings.Pong_new(byteslen_arg);
+ if (ret >= 0 && ret < 1024) { return null; }
Pong ret_hu_conv = new Pong(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
Pong ret_hu_conv = new Pong(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
@@
-50,6
+52,7
@@
public class Pong extends CommonBase {
*/
public Pong clone() {
long ret = bindings.Pong_clone(this.ptr);
*/
public Pong clone() {
long ret = bindings.Pong_clone(this.ptr);
+ if (ret >= 0 && ret < 1024) { return null; }
Pong ret_hu_conv = new Pong(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
Pong ret_hu_conv = new Pong(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
@@
-68,6
+71,7
@@
public class Pong extends CommonBase {
*/
public static Result_PongDecodeErrorZ read(byte[] ser) {
long ret = bindings.Pong_read(ser);
*/
public static Result_PongDecodeErrorZ read(byte[] ser) {
long ret = bindings.Pong_read(ser);
+ if (ret >= 0 && ret < 1024) { return null; }
Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}