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
/
Pong.ts
diff --git
a/ts/structs/Pong.ts
b/ts/structs/Pong.ts
index 30d57ecb87e96cc3ce6daa50481bc3e43a258d22..3305de2acdb58a8b1ef9bacb9de58f04a9e930a3 100644
(file)
--- a/
ts/structs/Pong.ts
+++ b/
ts/structs/Pong.ts
@@
-1,43
+1,51
@@
+
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 Pong extends CommonBase {
- Pong(Object _dummy, long ptr) { super(ptr); }
- @Override @SuppressWarnings("deprecation")
- protected void finalize() throws Throwable {
- super.finalize();
- if (ptr != 0) { bindings.Pong_free(ptr); }
- }
+
+ export default class Pong extends CommonBase {
+ constructor(_dummy: object, ptr: number) {
+ super(ptr);
+ }
+
+
+ protected finalize() {
+ super.finalize();
+
+ if (this.ptr != 0) {
+ bindings.Pong_free(this.ptr);
+ }
+ }
public Pong clone() {
public Pong clone() {
-
uint32_t
ret = bindings.Pong_clone(this.ptr);
-
Pong ret_hu_conv
= new Pong(null, ret);
+
number
ret = bindings.Pong_clone(this.ptr);
+
const ret_hu_conv: Pong
= new Pong(null, ret);
return ret_hu_conv;
}
return ret_hu_conv;
}
- public
short
get_byteslen() {
-
short
ret = bindings.Pong_get_byteslen(this.ptr);
+ public
number
get_byteslen() {
+
number
ret = bindings.Pong_get_byteslen(this.ptr);
return ret;
}
return ret;
}
- public void set_byteslen(
short
val) {
+ public void set_byteslen(
number
val) {
bindings.Pong_set_byteslen(this.ptr, val);
}
bindings.Pong_set_byteslen(this.ptr, val);
}
- public static Pong constructor_new(
short
byteslen_arg) {
-
uint32_t
ret = bindings.Pong_new(byteslen_arg);
-
Pong ret_hu_conv
= new Pong(null, ret);
+ public static Pong constructor_new(
number
byteslen_arg) {
+
number
ret = bindings.Pong_new(byteslen_arg);
+
const ret_hu_conv: Pong
= new Pong(null, ret);
return ret_hu_conv;
}
return ret_hu_conv;
}
- public
byte[]
write() {
-
byte[]
ret = bindings.Pong_write(this.ptr);
+ public
Uint8Array
write() {
+
Uint8Array
ret = bindings.Pong_write(this.ptr);
return ret;
}
return ret;
}
- public static Result_PongDecodeErrorZ constructor_read(
byte[]
ser) {
-
uint32_t
ret = bindings.Pong_read(ser);
+ public static Result_PongDecodeErrorZ constructor_read(
Uint8Array
ser) {
+
number
ret = bindings.Pong_read(ser);
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;
}