{"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Feverykalax.hateblo.jp%2Fentry%2F2021%2F12%2F03%2F201504\" title=\"\u3010Java\u3011byte[]\u306b\u3064\u3044\u3066 \u307b\u304b - \u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","url":"https://everykalax.hateblo.jp/entry/2021/12/03/201504","author_url":"https://blog.hatena.ne.jp/kalax/","version":"1.0","blog_url":"https://everykalax.hateblo.jp/","provider_url":"https://hatena.blog","categories":["Java"],"author_name":"kalax","title":"\u3010Java\u3011byte[]\u306b\u3064\u3044\u3066 \u307b\u304b","description":"\u53d6\u308a\u6025\u304e\u5099\u5fd8\u9332\u3068\u3057\u3066\u66f8\u3044\u3066\u304a\u304f\u3002\u304a\u305d\u3089\u304f\u30b3\u30fc\u30c9\u4f8b\u306f\u304a\u304b\u3057\u306a\u70b9\u304c\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u5f8c\u3067\u76f4\u3059\u3002 byte[]\u3092long\u306b\u5909\u63db ByteBuffer\u3092\u5229\u7528\u3059\u308b[1]\u306e\u304c\u7c21\u5358\u3002 \u307e\u305aByteBuffer.wrap()\u306bbyte[]\u3092\u6e21\u3057\u3066\u3001ByteBuffer\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u3002 \u305d\u306e\u5f8c\u3001\u751f\u6210\u3057\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306egetLong()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001long\u5024\u3092\u5f97\u308b\u3002 byte[] bytes = /* \u4f55\u3089\u304b\u306e\u30d0\u30a4\u30c8\u914d\u5217 */ ByteBuffer buffer = ByteBuffer.wrap(bytes); long l = buffer.getLong(); byte[]\u3092\u5206\u5272 Arrays.c\u2026","blog_title":"\u65e5\u8a18","height":"190","published":"2021-12-03 20:15:04","provider_name":"Hatena Blog","image_url":null}