<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>「BinData」のArray型は連続する短いデータの取り扱い時に便利です。 使い方 16進数リテラルで渡す 16進数リテラルで渡します data = &quot;\x03\x04\x05\x06\x07\x08\x09&quot; これを読み込むと ary = BinData::Array.new(:type =&gt; :uint8, :read_until =&gt; :eof) ary.read(data) #&gt;&gt; [3, 4, 5, 6, 7, 8, 9] と、内部的に配列で持ってくれます。 あとは、普通の配列として扱えば良いです ary[0] #&gt;&gt; 3 ary[5] #&gt;&gt; 8 ary[-1] #&gt;&gt; 9 配列…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F04%2F14%2F235008&quot; title=&quot;「BinData」のArray型は連続する短いデータの取り扱い時に便利 - Bye Bye Moore&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>2015-04-14 23:50:08</published>
  <title>「BinData」のArray型は連続する短いデータの取り扱い時に便利</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2015/04/14/235008</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
