{"ScriptPreparationCode":"var arr = [];\r\n\r\nvar count = 100000;\r\n\r\nfor(var i = 0; i\u003Ccount; i\u002B\u002B) {\r\n arr.push(i%255);\r\n}\r\n\r\nfunction bytes_to_hex ( arr ) {\r\n var str = \u0027\u0027;\r\n for ( var i = 0; i \u003C arr.length; i\u002B\u002B ) {\r\n var h = ( arr[i] \u0026 0xff ).toString(16);\r\n if ( h.length \u003C 2 ) str \u002B= \u00270\u0027;\r\n str \u002B= h;\r\n }\r\n return str;\r\n}\r\n\r\nfunction bytesToHex(bytes) {\r\n\tfor (var hex = [], i = 0; i \u003C bytes.length; i\u002B\u002B) {\r\n\t\thex.push((bytes[i] \u003E\u003E\u003E 4).toString(16));\r\n\t\thex.push((bytes[i] \u0026 0xF).toString(16));\r\n\t}\r\n\treturn hex.join(\u0022\u0022);\r\n}\r\n\r\nfunction toHexString(byteArray) {\r\n return byteArray.map(function(byte) {\r\n return (\u00270\u0027 \u002B (byte \u0026 0xFF).toString(16)).slice(-2);\r\n }).join(\u0027\u0027)\r\n}","TestCases":[{"Name":"bytes_to_hex","Code":"bytes_to_hex(arr);","IsDeferred":false},{"Name":"bytesToHex","Code":"bytesToHex(arr);","IsDeferred":false},{"Name":"toHexString","Code":"toHexString(arr);","IsDeferred":false}]}