{"ScriptPreparationCode":"var size = 0xFF;\r\nvar buf = new ArrayBuffer(size);\r\nvar view = new DataView(buf);\r\nvar byte = new Uint8Array(buf);\r\nvar test_sum = 0;","TestCases":[{"Name":"read bytes (DataView)","Code":"let sum = 0;\r\nfor (let i=0; i \u003C size; i\u002B\u002B) {\r\n let val = view.getUint8(i);\r\n\tsum \u002B= val;\r\n sum |= val;\r\n sum ^= val;\r\n}\r\ntest_sum = sum;","IsDeferred":false},{"Name":"read bytes (Uint8Array)","Code":"let sum = 0;\r\nfor (let i=0; i \u003C size; i\u002B\u002B) {\r\n let val = byte[i];\r\n\tsum \u002B= val;\r\n sum |= val;\r\n sum ^= val;\r\n}\r\ntest_sum = sum;","IsDeferred":false}]}