public static constructor_ok(o: Uint8Array): Result_PaymentSecretAPIErrorZ {
const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32)));
const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
public static constructor_ok(o: Uint8Array): Result_PaymentSecretAPIErrorZ {
const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32)));
const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
public static constructor_err(e: APIError): Result_PaymentSecretAPIErrorZ {
const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_err(CommonBase.get_ptr_of(e));
const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
public static constructor_err(e: APIError): Result_PaymentSecretAPIErrorZ {
const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_err(CommonBase.get_ptr_of(e));
const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
public is_ok(): boolean {
const ret: boolean = bindings.CResult_PaymentSecretAPIErrorZ_is_ok(this.ptr);
return ret;
public is_ok(): boolean {
const ret: boolean = bindings.CResult_PaymentSecretAPIErrorZ_is_ok(this.ptr);
return ret;
public clone(): Result_PaymentSecretAPIErrorZ {
const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr);
const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
public clone(): Result_PaymentSecretAPIErrorZ {
const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr);
const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);