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 with new upstream.
[ldk-java]
/
ts
/
structs
/
Pong.ts
diff --git
a/ts/structs/Pong.ts
b/ts/structs/Pong.ts
index 3305de2acdb58a8b1ef9bacb9de58f04a9e930a3..58be169f8d101530f3d3079658feebe15c26c260 100644
(file)
--- a/
ts/structs/Pong.ts
+++ b/
ts/structs/Pong.ts
@@
-18,12
+18,6
@@
import * as bindings from '../bindings' // TODO: figure out location
bindings.Pong_free(this.ptr);
}
}
bindings.Pong_free(this.ptr);
}
}
- public Pong clone() {
- number ret = bindings.Pong_clone(this.ptr);
- const ret_hu_conv: Pong = new Pong(null, ret);
- return ret_hu_conv;
- }
-
public number get_byteslen() {
number ret = bindings.Pong_get_byteslen(this.ptr);
return ret;
public number get_byteslen() {
number ret = bindings.Pong_get_byteslen(this.ptr);
return ret;
@@
-36,6
+30,14
@@
import * as bindings from '../bindings' // TODO: figure out location
public static Pong constructor_new(number byteslen_arg) {
number ret = bindings.Pong_new(byteslen_arg);
const ret_hu_conv: Pong = 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);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public Pong clone() {
+ number ret = bindings.Pong_clone(this.ptr);
+ const ret_hu_conv: Pong = new Pong(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
return ret_hu_conv;
}