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.101
[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 5e296ab628dbee3e98eb21bfc5c3afcff4bbf088..908c064b2ef7f6a984451c34f3c31ac12c813e14 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;
/**
/**
@@
-38,8
+39,9
@@
public class Pong extends CommonBase {
/**
* Constructs a new Pong given each field
*/
/**
* Constructs a new Pong given each field
*/
- public static Pong
constructor_new
(short byteslen_arg) {
+ public static Pong
of
(short byteslen_arg) {
long ret = bindings.Pong_new(byteslen_arg);
long ret = bindings.Pong_new(byteslen_arg);
+ if (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 < 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;
@@
-66,8
+69,9
@@
public class Pong extends CommonBase {
/**
* Read a Pong from a byte array, created by Pong_write
*/
/**
* Read a Pong from a byte array, created by Pong_write
*/
- public static Result_PongDecodeErrorZ
constructor_
read(byte[] ser) {
+ public static Result_PongDecodeErrorZ read(byte[] ser) {
long ret = bindings.Pong_read(ser);
long ret = bindings.Pong_read(ser);
+ if (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;
}