{"ScriptPreparationCode":null,"TestCases":[{"Name":"readUint8 with for loop","Code":"const length = 1000;\r\nconst arrayBuffer = new ArrayBuffer(length);\r\nconst array = new Uint8Array(arrayBuffer);\r\n\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n\tarray[i] = 22;\r\n}\r\n\r\nconst dataView = new DataView(arrayBuffer);\r\nconst resultArray = [];\r\n\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n\tconst value = dataView.getUint8(i);\r\n\r\n\tresultArray.push(Boolean(value));\r\n}","IsDeferred":false},{"Name":"Slice with map","Code":"const length = 1000;\r\nconst arrayBuffer = new ArrayBuffer(length);\r\nconst array = new Uint8Array(arrayBuffer);\r\n\r\nfor (let i = 0; i \u003C length; i\u002B\u002B) {\r\n\tarray[i] = 22;\r\n}\r\n\r\nconst dataView = new DataView(arrayBuffer);\r\nconst transferArray = new Uint8Array(dataView);\r\nconst resultArray = [...transferArray].map(value =\u003E Boolean(value));","IsDeferred":false}]}