3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class InitFeatures extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.InitFeatures_free(this.ptr);
21 public boolean eq(InitFeatures b) {
22 boolean ret = bindings.InitFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
27 public InitFeatures clone() {
28 number ret = bindings.InitFeatures_clone(this.ptr);
29 const ret_hu_conv: InitFeatures = new InitFeatures(null, ret);
30 ret_hu_conv.ptrs_to.add(this);
34 public static InitFeatures constructor_empty() {
35 number ret = bindings.InitFeatures_empty();
36 const ret_hu_conv: InitFeatures = new InitFeatures(null, ret);
37 ret_hu_conv.ptrs_to.add(ret_hu_conv);
41 public static InitFeatures constructor_known() {
42 number ret = bindings.InitFeatures_known();
43 const ret_hu_conv: InitFeatures = new InitFeatures(null, ret);
44 ret_hu_conv.ptrs_to.add(ret_hu_conv);
48 public boolean requires_unknown_bits() {
49 boolean ret = bindings.InitFeatures_requires_unknown_bits(this.ptr);
53 public boolean supports_payment_secret() {
54 boolean ret = bindings.InitFeatures_supports_payment_secret(this.ptr);
58 public Uint8Array write() {
59 Uint8Array ret = bindings.InitFeatures_write(this.ptr);
63 public static Result_InitFeaturesDecodeErrorZ constructor_read(Uint8Array ser) {
64 number ret = bindings.InitFeatures_read(ser);
65 Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.constr_from_ptr(ret);