<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>C++でゲームプログラミング</blog_title>
  <blog_url>https://osyo-manga.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C++テクニック</anon>
    <anon>プログラム</anon>
  </categories>
  <description>std::fstream を使用すると下のように簡単にファイルを読み込むことができる。 std::ifstream ifs(&quot;Title.pic&quot;, std::ios::binary); std::vector&lt;char&gt; buffer; buffer.assign( std::istreambuf_iterator&lt;char&gt;(ifs), std::istreambuf_iterator&lt;char&gt;() ); しかし、いざ使ってみるとバッファへのコピーが遅い遅い…。 まぁ内部でイテレータをぶん回してるから遅いのは当たり前か。 なので、下のように変更。 std::ifstream ifs(&quot;T…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20090907%2F1252329868&quot; title=&quot;ファイル読み込みとか - C++でゲームプログラミング&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>2009-09-07 22:24:28</published>
  <title>ファイル読み込みとか</title>
  <type>rich</type>
  <url>https://osyo-manga.hatenadiary.org/entry/20090907/1252329868</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
