{"ScriptPreparationCode":"var size = 0xFF;\r\nvar buf = new ArrayBuffer(size);\r\nvar view = new DataView(buf);\r\nvar byte = new Uint8Array(buf);\r\n\r\nvar data = [];\r\n\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n data[i] = 100 * Math.random();\r\n}\r\n\r\nvar dataBytes = new Uint8Array(data);\r\nvar dataView = new DataView(dataBytes.buffer);","TestCases":[{"Name":"DataView","Code":"for (let i; i \u003C size; i\u002B\u002B) {\r\n\tview.setUint8(i, data[i]);\r\n}","IsDeferred":false},{"Name":"Uint8Array by byte","Code":"for (let i; i \u003C size; i\u002B\u002B) {\r\n\tbyte[i] = data[i];\r\n}","IsDeferred":false},{"Name":"Uint8Array with set","Code":"byte.set(data, 0);","IsDeferred":false},{"Name":"Uint8Array with set other Uint8Array","Code":"byte.set(dataBytes, 0);","IsDeferred":false},{"Name":"DataView loop","Code":"for (let i = 0; i \u003C dataBytes.length; i\u002B\u002B) {\r\n view.setUint8(i, dataView.getUint8(i));\r\n}","IsDeferred":false}]}