projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bindings updates
[ldk-java]
/
ts
/
structs
/
Ping.ts
diff --git
a/ts/structs/Ping.ts
b/ts/structs/Ping.ts
index 5eb815a67e44d0435d449ca85688d72793e23fd6..d915f29e4612c8e74f47817fa7598902b3b7706d 100644
(file)
--- a/
ts/structs/Ping.ts
+++ b/
ts/structs/Ping.ts
@@
-1,52
+1,60
@@
+
import CommonBase from './CommonBase';
import * as bindings from '../bindings' // TODO: figure out location
import CommonBase from './CommonBase';
import * as bindings from '../bindings' // TODO: figure out location
-public class Ping extends CommonBase {
- Ping(Object _dummy, long ptr) { super(ptr); }
- @Override @SuppressWarnings("deprecation")
- protected void finalize() throws Throwable {
- super.finalize();
- if (ptr != 0) { bindings.Ping_free(ptr); }
- }
+
+ export default class Ping extends CommonBase {
+ constructor(_dummy: object, ptr: number) {
+ super(ptr);
+ }
+
+
+ protected finalize() {
+ super.finalize();
+
+ if (this.ptr != 0) {
+ bindings.Ping_free(this.ptr);
+ }
+ }
public Ping clone() {
public Ping clone() {
-
uint32_t
ret = bindings.Ping_clone(this.ptr);
-
Ping ret_hu_conv
= new Ping(null, ret);
+
number
ret = bindings.Ping_clone(this.ptr);
+
const ret_hu_conv: Ping
= new Ping(null, ret);
return ret_hu_conv;
}
return ret_hu_conv;
}
- public
short
get_ponglen() {
-
short
ret = bindings.Ping_get_ponglen(this.ptr);
+ public
number
get_ponglen() {
+
number
ret = bindings.Ping_get_ponglen(this.ptr);
return ret;
}
return ret;
}
- public void set_ponglen(
short
val) {
+ public void set_ponglen(
number
val) {
bindings.Ping_set_ponglen(this.ptr, val);
}
bindings.Ping_set_ponglen(this.ptr, val);
}
- public
short
get_byteslen() {
-
short
ret = bindings.Ping_get_byteslen(this.ptr);
+ public
number
get_byteslen() {
+
number
ret = bindings.Ping_get_byteslen(this.ptr);
return ret;
}
return ret;
}
- public void set_byteslen(
short
val) {
+ public void set_byteslen(
number
val) {
bindings.Ping_set_byteslen(this.ptr, val);
}
bindings.Ping_set_byteslen(this.ptr, val);
}
- public static Ping constructor_new(
short ponglen_arg, short
byteslen_arg) {
-
uint32_t
ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
-
Ping ret_hu_conv
= new Ping(null, ret);
+ public static Ping constructor_new(
number ponglen_arg, number
byteslen_arg) {
+
number
ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
+
const ret_hu_conv: Ping
= new Ping(null, ret);
return ret_hu_conv;
}
return ret_hu_conv;
}
- public
byte[]
write() {
-
byte[]
ret = bindings.Ping_write(this.ptr);
+ public
Uint8Array
write() {
+
Uint8Array
ret = bindings.Ping_write(this.ptr);
return ret;
}
return ret;
}
- public static Result_PingDecodeErrorZ constructor_read(
byte[]
ser) {
-
uint32_t
ret = bindings.Ping_read(ser);
+ public static Result_PingDecodeErrorZ constructor_read(
Uint8Array
ser) {
+
number
ret = bindings.Ping_read(ser);
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;
}