<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kalax</author_name>
  <author_url>https://blog.hatena.ne.jp/kalax/</author_url>
  <blog_title>日記</blog_title>
  <blog_url>https://everykalax.hateblo.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>取り急ぎ備忘録として書いておく。おそらくコード例はおかしな点があると思うので後で直す。 byte[]をlongに変換 ByteBufferを利用する[1]のが簡単。 まずByteBuffer.wrap()にbyte[]を渡して、ByteBufferインスタンスを生成する。 その後、生成したインスタンスのgetLong()メソッドを使って、long値を得る。 byte[] bytes = /* 何らかのバイト配列 */ ByteBuffer buffer = ByteBuffer.wrap(bytes); long l = buffer.getLong(); byte[]を分割 Arrays.c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feverykalax.hateblo.jp%2Fentry%2F2021%2F12%2F03%2F201504&quot; title=&quot;【Java】byte[]について ほか - 日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-03 20:15:04</published>
  <title>【Java】byte[]について ほか</title>
  <type>rich</type>
  <url>https://everykalax.hateblo.jp/entry/2021/12/03/201504</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
