Lines Matching defs:args
266 void DecodeData(const FunctionCallbackInfo<Value>& args) {
268 reinterpret_cast<StringDecoder*>(Buffer::Data(args[0]));
271 CHECK(args[1]->IsArrayBufferView());
272 ArrayBufferViewContents<char> content(args[1].As<ArrayBufferView>());
276 decoder->DecodeData(args.GetIsolate(), content.data(), &length);
278 args.GetReturnValue().Set(ret.ToLocalChecked());
281 void FlushData(const FunctionCallbackInfo<Value>& args) {
283 reinterpret_cast<StringDecoder*>(Buffer::Data(args[0]));
285 MaybeLocal<String> ret = decoder->FlushData(args.GetIsolate());
287 args.GetReturnValue().Set(ret.ToLocalChecked());