MCPcopy 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
96var idKey = '_ffiId'
97function 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

VariadicForeignFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected