MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / InitDataViewReadWrite

Function InitDataViewReadWrite

test/dataview/dataview_read_write.cc:93–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93Object InitDataViewReadWrite(Env env) {
94 Object exports = Object::New(env);
95
96 exports["getFloat32"] = Function::New(env, GetFloat32);
97 exports["getFloat64"] = Function::New(env, GetFloat64);
98 exports["getInt8"] = Function::New(env, GetInt8);
99 exports["getInt16"] = Function::New(env, GetInt16);
100 exports["getInt32"] = Function::New(env, GetInt32);
101 exports["getUint8"] = Function::New(env, GetUint8);
102 exports["getUint16"] = Function::New(env, GetUint16);
103 exports["getUint32"] = Function::New(env, GetUint32);
104
105 exports["setFloat32"] = Function::New(env, SetFloat32);
106 exports["setFloat64"] = Function::New(env, SetFloat64);
107 exports["setInt8"] = Function::New(env, SetInt8);
108 exports["setInt16"] = Function::New(env, SetInt16);
109 exports["setInt32"] = Function::New(env, SetInt32);
110 exports["setUint8"] = Function::New(env, SetUint8);
111 exports["setUint16"] = Function::New(env, SetUint16);
112 exports["setUint32"] = Function::New(env, SetUint32);
113
114 return exports;
115}

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected