Lines Matching defs:args

135 void Decode(const v8::FunctionCallbackInfo<v8::Value>& args,
139 ASSIGN_OR_RETURN_UNWRAP(&ctx, args.Holder());
141 if (args[0]->IsString()) {
143 Environment* env = Environment::GetCurrent(args);
144 enum encoding enc = ParseEncoding(env->isolate(), args[1], UTF8);
145 if (decoder.Decode(env, args[0].As<v8::String>(), enc).IsNothing())
147 callback(ctx, args, decoder.out(), decoder.size());
149 ArrayBufferViewContents<char> buf(args[0]);
150 callback(ctx, args, buf.data(), buf.length());
176 void Insert(const NodeCryptoError error, Args&&... args);
191 void CryptoErrorStore::Insert(const NodeCryptoError error, Args&&... args) {
200 std::forward<Args>(args)...));
330 CryptoJobMode GetCryptoJobMode(v8::Local<v8::Value> args);
373 v8::Local<v8::Value> args[2];
376 v8::Maybe<bool> ret = ptr->ToResult(&args[0], &args[1]);
386 ptr->MakeCallback(env->ondone_string(), arraysize(args), args);
411 static void Run(const v8::FunctionCallbackInfo<v8::Value>& args) {
412 Environment* env = Environment::GetCurrent(args);
415 ASSIGN_OR_RETURN_UNWRAP(&job, args.Holder());
424 args.GetReturnValue().Set(
461 static void New(const v8::FunctionCallbackInfo<v8::Value>& args) {
462 Environment* env = Environment::GetCurrent(args);
464 CryptoJobMode mode = GetCryptoJobMode(args[0]);
467 if (DeriveBitsTraits::AdditionalConfig(mode, args, 1, &params)
475 new DeriveBitsJob(env, args.This(), mode, std::move(params));
607 void SetEngine(const v8::FunctionCallbackInfo<v8::Value>& args);
610 void GetFipsCrypto(const v8::FunctionCallbackInfo<v8::Value>& args);
612 void SetFipsCrypto(const v8::FunctionCallbackInfo<v8::Value>& args);
614 void TestFipsCrypto(const v8::FunctionCallbackInfo<v8::Value>& args);