]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/Pong.ts
Update auto-updated Java files
[ldk-java] / ts / structs / Pong.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class Pong extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.Pong_free(this.ptr);
19                     }
20                 }
21         public number get_byteslen() {
22                 number ret = bindings.Pong_get_byteslen(this.ptr);
23                 return ret;
24         }
25
26         public void set_byteslen(number val) {
27                 bindings.Pong_set_byteslen(this.ptr, val);
28         }
29
30         public static Pong constructor_new(number byteslen_arg) {
31                 number ret = bindings.Pong_new(byteslen_arg);
32                 const ret_hu_conv: Pong = new Pong(null, ret);
33                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
34                 return ret_hu_conv;
35         }
36
37         public number clone_ptr() {
38                 number ret = bindings.Pong_clone_ptr(this.ptr);
39                 return ret;
40         }
41
42         public Pong clone() {
43                 number ret = bindings.Pong_clone(this.ptr);
44                 const ret_hu_conv: Pong = new Pong(null, ret);
45                 ret_hu_conv.ptrs_to.add(this);
46                 return ret_hu_conv;
47         }
48
49         public Uint8Array write() {
50                 Uint8Array ret = bindings.Pong_write(this.ptr);
51                 return ret;
52         }
53
54         public static Result_PongDecodeErrorZ constructor_read(Uint8Array ser) {
55                 number ret = bindings.Pong_read(ser);
56                 Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
57                 return ret_hu_conv;
58         }
59
60 }