<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Cryolite</author_name>
  <author_url>https://blog.hatena.ne.jp/Cryolite/</author_url>
  <blog_title>Cry's Blog</blog_title>
  <blog_url>https://blog.cryolite.net/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>モチベーション バイナリファイルの一部分を別ファイルにコピーする簡潔な手段が欲しい． 問題設定 // &quot;in.dat&quot;の[first, last)を&quot;out.dat&quot;へコピーしたい．（first, lastは先頭からのoffset） size_t first, last; ifstream ifs(&quot;in.dat&quot;, ios::in | ios::binary); ofstream ofs(&quot;out.dat&quot;, ios::out | ios::trunc | ios::binary); ..... ifs.seekg(first); size_t sz = last - first; // こ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cryolite.net%2Fentry%2F20041017%2Fp1&quot; title=&quot;バイナリの一部分をコピー - Cry&amp;#39;s Blog&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>2004-10-17 00:00:00</published>
  <title>バイナリの一部分をコピー</title>
  <type>rich</type>
  <url>https://blog.cryolite.net/entry/20041017/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
