Lines Matching refs:args
144 void JSStream::New(const FunctionCallbackInfo<Value>& args) {
148 CHECK(args.IsConstructCall());
149 Environment* env = Environment::GetCurrent(args);
150 new JSStream(env, args.This());
155 void JSStream::Finish(const FunctionCallbackInfo<Value>& args) {
156 CHECK(args[0]->IsObject());
157 Wrap* w = static_cast<Wrap*>(StreamReq::FromObject(args[0].As<Object>()));
159 CHECK(args[1]->IsInt32());
160 w->Done(args[1].As<Int32>()->Value());
164 void JSStream::ReadBuffer(const FunctionCallbackInfo<Value>& args) {
166 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
168 ArrayBufferViewContents<char> buffer(args[0]);
188 void JSStream::EmitEOF(const FunctionCallbackInfo<Value>& args) {
190 ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());