/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleCpp.js
 */

#include "RNTurboEncryptionSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeTurboEncryptionCxxSpecJSI_encrypt(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeTurboEncryptionCxxSpecJSI *>(&turboModule)->encrypt(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeTurboEncryptionCxxSpecJSI_decrypt(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeTurboEncryptionCxxSpecJSI *>(&turboModule)->decrypt(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeTurboEncryptionCxxSpecJSI_decryptAsync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeTurboEncryptionCxxSpecJSI *>(&turboModule)->decryptAsync(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeTurboEncryptionCxxSpecJSI_encryptAsync(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeTurboEncryptionCxxSpecJSI *>(&turboModule)->encryptAsync(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}

NativeTurboEncryptionCxxSpecJSI::NativeTurboEncryptionCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("TurboEncryption", jsInvoker) {
  methodMap_["encrypt"] = MethodMetadata {2, __hostFunction_NativeTurboEncryptionCxxSpecJSI_encrypt};
  methodMap_["decrypt"] = MethodMetadata {2, __hostFunction_NativeTurboEncryptionCxxSpecJSI_decrypt};
  methodMap_["decryptAsync"] = MethodMetadata {2, __hostFunction_NativeTurboEncryptionCxxSpecJSI_decryptAsync};
  methodMap_["encryptAsync"] = MethodMetadata {2, __hostFunction_NativeTurboEncryptionCxxSpecJSI_encryptAsync};
}


} // namespace facebook::react
