Lines Matching refs:args
39 const FunctionCallbackInfo<Value>& args,
42 CHECK(IsAnyByteSource(args[offset])); // Buffer to fill
43 CHECK(args[offset + 1]->IsUint32()); // Offset
44 CHECK(args[offset + 2]->IsUint32()); // Size
46 ArrayBufferOrViewContents<unsigned char> in(args[offset]);
48 const uint32_t byte_offset = args[offset + 1].As<Uint32>()->Value();
49 const uint32_t size = args[offset + 2].As<Uint32>()->Value();
88 const FunctionCallbackInfo<Value>& args,
92 Environment* env = Environment::GetCurrent(args);
93 CHECK(args[offset]->IsUint32()); // Size
94 CHECK(args[offset + 1]->IsBoolean()); // Safe
96 const uint32_t size = args[offset].As<Uint32>()->Value();
97 bool safe = args[offset + 1]->IsTrue();
99 if (!args[offset + 2]->IsUndefined()) {
100 ArrayBufferOrViewContents<unsigned char> add(args[offset + 2]);
108 if (!args[offset + 3]->IsUndefined()) {
109 ArrayBufferOrViewContents<unsigned char> rem(args[offset + 3]);
179 const FunctionCallbackInfo<Value>& args,
182 ArrayBufferOrViewContents<unsigned char> candidate(args[offset]);
190 CHECK(args[offset + 1]->IsInt32()); // Checks
191 params->checks = args[offset + 1].As<Int32>()->Value();