Handle<Value> Png::PngEncodeSync(const Arguments &args) { HandleScope scope; Png *png = ObjectWrap::Unwrap<Png>(args.This()); return scope.Close(png->PngEncodeSync()); }
void Png::PngEncodeSync(const FunctionCallbackInfo<Value> &args) { Isolate *isolate = Isolate::GetCurrent(); HandleScope scope(isolate); Png *png = ObjectWrap::Unwrap<Png>(args.This()); args.GetReturnValue().Set(png->PngEncodeSync()); }