<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>BinaryReaderの整数読み込みメソッド（ReadInt16、ReadInt32等）のエンディアンは環境依存かと思い込んでいましたが、ドキュメントにリトルエンディアンと明記されていました。.NET Sourceのソースコードでも明示的にリトルエンディアンとして型変換されています。 BinaryReader.ReadInt16 (.NET) - Microsoft Learn BinaryReader.ReadInt16 - .NET Source 上記を踏まえると整数をビッグエンディアンで読み込むコードもBinaryPrimitives.ReverseEndiannessを使えば簡単に書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F02%2F09%2F213129&quot; title=&quot;C# BinaryReaderの整数読み込みメソッドはリトルエンディアン - potisanのプログラミングメモ&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>2026-02-09 21:31:29</published>
  <title>C# BinaryReaderの整数読み込みメソッドはリトルエンディアン</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/02/09/213129</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
