3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class C2Tuple_PublicKeyTypeZ extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.C2Tuple_PublicKeyTypeZ_free(this.ptr);
21 public Uint8Array get_a() {
22 Uint8Array ret = bindings.C2Tuple_PublicKeyTypeZ_get_a(this.ptr);
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);
33 public number clone_ptr() {
34 number ret = bindings.C2Tuple_PublicKeyTypeZ_clone_ptr(this.ptr);
38 public TwoTuple_PublicKeyTypeZ clone() {
39 number ret = bindings.C2Tuple_PublicKeyTypeZ_clone(this.ptr);
40 TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret);
41 ret_hu_conv.ptrs_to.add(this);
45 public static TwoTuple_PublicKeyTypeZ constructor_new(Uint8Array a, Type b) {
46 number ret = bindings.C2Tuple_PublicKeyTypeZ_new(InternalUtils.check_arr_len(a, 33), b == null ? 0 : b.ptr);
47 TwoTuple_PublicKeyTypeZ ret_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret);
48 ret_hu_conv.ptrs_to.add(ret_hu_conv);
49 ret_hu_conv.ptrs_to.add(b);