Lines Matching defs:args
275 void StreamPipe::New(const FunctionCallbackInfo<Value>& args) {
276 CHECK(args.IsConstructCall());
277 CHECK(args[0]->IsObject());
278 CHECK(args[1]->IsObject());
279 StreamBase* source = StreamBase::FromObject(args[0].As<Object>());
280 StreamBase* sink = StreamBase::FromObject(args[1].As<Object>());
282 if (StreamPipe::New(source, sink, args.This()).IsNothing()) return;
285 void StreamPipe::Start(const FunctionCallbackInfo<Value>& args) {
287 ASSIGN_OR_RETURN_UNWRAP(&pipe, args.Holder());
292 void StreamPipe::Unpipe(const FunctionCallbackInfo<Value>& args) {
294 ASSIGN_OR_RETURN_UNWRAP(&pipe, args.Holder());
298 void StreamPipe::IsClosed(const FunctionCallbackInfo<Value>& args) {
300 ASSIGN_OR_RETURN_UNWRAP(&pipe, args.Holder());
301 args.GetReturnValue().Set(pipe->is_closed_);
304 void StreamPipe::PendingWrites(const FunctionCallbackInfo<Value>& args) {
306 ASSIGN_OR_RETURN_UNWRAP(&pipe, args.Holder());
307 args.GetReturnValue().Set(pipe->pending_writes_);