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

Function needsRawPointerConversion

lib/internal/ffi/fast-api.js:43–49  ·  view source on GitHub ↗
(type, rawFn)

Source from the content-addressed store, hash-verified

41}
42
43function needsRawPointerConversion(type, rawFn) {
44 if (rawFn !== undefined && rawFn[kFastBuffer] === true &&
45 (type === 'buffer' || type === 'arraybuffer')) {
46 return false;
47 }
48 return type === 'buffer' || type === 'arraybuffer';
49}
50
51function needsPointerLikeConversion(type) {
52 return type === 'pointer' || type === 'ptr' || type === 'function';

Callers 5

needsPointerConversionFunction · 0.85
hasPointerMemoryArgFunction · 0.85
convertPointerArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…