<?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>.NET</anon>
    <anon>C#</anon>
    <anon>Unity</anon>
  </categories>
  <description>ある整数を2進数に変換し4桁ごとに区切り文字を入れる方法の紹介です。 // こんな数値を uint value = 0xCACAEFEF; // こんな風に文字列に変換する 1100 1010 1100 1010 1110 1111 1110 1111 Unity 上での使用を想定して GCAlloc が最小となる &amp; そこそこ高速に動作するように実装します。Linq は使用せずに（処理速度、GCAlloc で劣るため）、Span を使用したいと思います。 確認環境 .NET Core 3.1 Visual Studio 2022 コンソールで出力を確認 実装コード public static…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2023%2F03%2F31%2F011125&quot; title=&quot;【C#】2進数を4桁ごとに区切って表示する - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20230331/20230331011001.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-03-31 01:11:25</published>
  <title>【C#】2進数を4桁ごとに区切って表示する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2023/03/31/011125</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
