<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>.NET Core</anon>
    <anon>C#</anon>
  </categories>
  <description>.NET Core 時代になって Span 構造体が追加されて、FileStream クラスとか BitConverter が標準で対応し始めたのでバイナリデータの効率的な入出力が簡単になってるようなので実験。 条件 バイナリデータで float 型を5件書き込んだファイルを用意する そのファイルを Span 対応のAPIで読みだす FileStreamクラス Bitconverterクラス string filePath = @&quot;d:\file.bin&quot;; int len = 5; // ファイルに20件分のfloatデータを書き出す using (var wfs = new FileStr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2020%2F09%2F01%2F235922&quot; title=&quot;【C#】Span&amp;lt;T&amp;gt;構造体を使ったバイナリファイルの読み書き - PG日誌&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>2020-09-01 23:59:22</published>
  <title>【C#】Span&lt;T&gt;構造体を使ったバイナリファイルの読み書き</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2020/09/01/235922</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
