We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dfbacc commit b18932bCopy full SHA for b18932b
src/managers/tablemgr.ts
@@ -179,9 +179,11 @@ private buffer: Uint8Array = new Uint8Array();
179
i += 3;
180
}
181
else if (data[i] == this.TypeFloat) {
182
- const view = new DataView(data.buffer, i+2, 4);
183
- const val = Math.round(view.getFloat32(0, true) * 1e4) / 1e4;
184
- this.tableArray[data[i+1]] = val;
+ const buff = data.buffer;
+ const view = new DataView(buff, data.byteOffset+i+2, 4);
+ const val1 = view.getFloat32(0, true);
185
+ //const val = Math.round(view.getFloat32(0, true) * 1e4) / 1e4;
186
+ this.tableArray[data[i+1]] = val1;
187
i += 6
188
189
0 commit comments