MCPcopy Index your code
hub / github.com/nodejs/node / getPointerConversionIndexes

Function getPointerConversionIndexes

lib/internal/ffi/fast-api.js:137–149  ·  view source on GitHub ↗
(argumentsTypes, rawFn)

Source from the content-addressed store, hash-verified

135}
136
137function getPointerConversionIndexes(argumentsTypes, rawFn) {
138 let indexes = null;
139 for (let i = 0; i < argumentsTypes.length; i++) {
140 if (!needsPointerConversion(argumentsTypes[i], rawFn)) {
141 continue;
142 }
143 if (indexes === null) {
144 indexes = [];
145 }
146 indexes.push(i);
147 }
148 return indexes;
149}
150
151function initializeFastBufferMetadata(rawFn, argumentTypes) {
152 if (rawFn === undefined || rawFn === null || argumentTypes === undefined) {

Callers 1

Calls 2

needsPointerConversionFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…