| 91 | } |
| 92 | |
| 93 | Object 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 | } |