{"categories":["JavaScript"],"author_name":"potisan","title":"JavaScript Uint8Array\u3068Uint8ClampedArray\u306e\u8981\u7d20\u306e\u7bc4\u56f2\u5236\u9650\u65b9\u6cd5\u306e\u9055\u3044","height":"190","type":"rich","url":"https://potisan-programming-memo.hatenablog.jp/entry/2020/10/22/231342","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F10%2F22%2F231342\" title=\"JavaScript Uint8Array\u3068Uint8ClampedArray\u306e\u8981\u7d20\u306e\u7bc4\u56f2\u5236\u9650\u65b9\u6cd5\u306e\u9055\u3044 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/potisan/","description":"Uint8Array\u306f\u8981\u7d20\u30920\uff5e255\uff080\uff5e0xff\uff09\u306e\u6574\u6570\u306b\u53ce\u3081\u308b\u3002\u8981\u7d20\u306f\u6574\u6570\u304b\u3064& 0xff\u3067\u5909\u63db\u3055\u308c\u308b\u3002 Uint8ClampedArray\u306f\u8981\u7d20\u30920\uff5e255\uff080\uff5e0xff\uff09\u306e\u6574\u6570\u306b\u53ce\u3081\u308b\u3002\u8981\u7d20\u306f\u6574\u6570\u304b\u30640\u672a\u6e80\u306f0\u3001255\u8d85\u904e\u306f255\u306b\u5909\u63db\u3055\u308c\u308b\u3002 Uint8Array.of(255, 256, 257, 258, 0, -1, -2) // Uint8Array(7) [ 255, 0, 1, 2, 0, 255, 254 ] Uint8ClampedArray.of(255, 256, 257, 258, 0, -1, -2) // Uint8ClampedArray(7) [ 25\u2026","published":"2020-10-22 23:13:42","provider_name":"Hatena Blog","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","image_url":null,"width":"100%","blog_url":"https://potisan-programming-memo.hatenablog.jp/"}