<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rdera</author_name>
  <author_url>https://blog.hatena.ne.jp/rdera/</author_url>
  <blog_title>rderaログ</blog_title>
  <blog_url>https://rdera.hatenadiary.org/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>java.nio.Buffer系がよく分からなかった。でも、色々調べたりしたら分かってきた。 今後のためのメモ。 バッファ使ううえで理解必要な概念。 容量 リミット ポジション(位置) リマイニング Java API ダイジェスト ByteBufferクラスの図を参考に理解した。 容量 文字通りそのバッファの容量。どの位、確保するか。 CharBufferを容量10文字で使おうと思ったら、まず以下のように宣言する必要がある。 CharBuffer cb = CharBuffer.allocate(10); リミット これがよく分からなくて、ハマった。 リミットは読み込み、書き込みできる要素の限…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frdera.hatenadiary.org%2Fentry%2F20081024%2F1224807912&quot; title=&quot;java.nio.Buffer系の使い方を理解したい - rderaログ&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>2008-10-24 09:25:12</published>
  <title>java.nio.Buffer系の使い方を理解したい</title>
  <type>rich</type>
  <url>https://rdera.hatenadiary.org/entry/20081024/1224807912</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
