211fbc13c7b3993b329b1cc172554308800f706a
[ldk-java] / ts / structs / TwoTuple_PublicKeyTypeZ.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 C2Tuple_PublicKeyTypeZ 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.C2Tuple_PublicKeyTypeZ_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_a() {
22                 Uint8Array ret = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr);
23                 return ret;
24         }
25
26         public Type get_b() {
27                 number ret = bindings.C2Tuple_PublicKeyTypeZ_get_b(this.ptr);
28                 Type ret_hu_conv = new Type(null, ret);
29                 ret_hu_conv.ptrs_to.add(this);
30                 return ret_hu_conv;
31         }
32
33         public TwoTuple_PublicKeyTypeZ clone() {
34                 number ret = bindings.C2Tuple_PublicKeyTypeZ_clone(this.ptr);
35                 TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret);
36                 ret_hu_conv.ptrs_to.add(this);
37                 return ret_hu_conv;
38         }
39
40         public static TwoTuple_PublicKeyTypeZ constructor_new(Uint8Array a, Type b) {
41                 number ret = bindings.C2Tuple_PublicKeyTypeZ_new(a, b == null ? 0 : b.ptr);
42                 TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret);
43                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
44                 ret_hu_conv.ptrs_to.add(b);
45                 return ret_hu_conv;
46         }
47
48 }