{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20120520%2F1337512218\" title=\" Uint8Array\u3068Uint8ClampedArray\u306e\u9055\u3044 - Islands in the byte stream (legacy)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"blog_title":"Islands in the byte stream (legacy)","url":"https://gfx.hatenadiary.org/entry/20120520/1337512218","published":"2012-05-20 20:10:18","width":"100%","author_name":"gfx","type":"rich","height":"190","categories":["JavaScript"],"version":"1.0","provider_url":"https://hatena.blog","title":" Uint8Array\u3068Uint8ClampedArray\u306e\u9055\u3044","description":"W3C\u306b\u3088\u308c\u3070\u3001\u3053\u306e\u9055\u3044\u306f\u5024\u304cclamp\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3089\u3057\u3044\u3002clamp\u3068\u3044\u3046\u306e\u306f\u3001\u7bc4\u56f2\u306e\u6307\u5b9a\u3055\u308c\u305fint\u306b\u305d\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u5024\u3092\u4ee3\u5165\u3057\u305f\u3068\u304d\u3001\u901a\u5e38\u3067\u3042\u308c\u3070modulo\u3067\u51e6\u7406\u3059\u308b\u3068\u3053\u308d\u3092\u3001\u7bc4\u56f2\u306e\u4e0a\u9650\u306e\u5024\u3092\u4ee3\u308f\u308a\u306b\u4ee3\u5165\u3059\u308b\u3001\u3068\u3044\u3046\u3082\u306e\u3060\u3002 // NOTE: node.js doesn't support Uint8ClampedArray \"use strict\"; // normal typed array var a = new Uint8Array(1); a[0] = 1000; console.log(a[0]); // 1000 % 0xFF => 232 // clamped typ\u2026","provider_name":"Hatena Blog","blog_url":"https://gfx.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/gfx/"}