Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/node-ffi/node-ffi
/ getId
Function
getId
lib/foreign_function_var.js:97–102 ·
view source on GitHub ↗
(type)
Source
from the content-addressed store, hash-verified
95
96
var
idKey =
'_ffiId'
97
function
getId (
type
) {
98
if
(!
type
.hasOwnProperty(idKey)) {
99
type
[idKey] = (((1+Math.random())*0x10000)|0).toString(16)
100
}
101
return
type
[idKey]
102
}
Callers
2
VariadicForeignFunction
Function · 0.85
variadic_function_generator
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected