<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sshun</author_name>
  <author_url>https://blog.hatena.ne.jp/sshun/</author_url>
  <blog_title>sshun@Robot</blog_title>
  <blog_url>https://sshun.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>通信する時にfloatを一旦1byte単位で読みたかったのですが、簡単にはできないみたい。 以下のようなメソッドを作って対応しました。 private UInt32 FloatToByte(float f) { byte[] buf = new byte[4]; UInt32 returnval; MemoryStream mem = new MemoryStream(buf); BinaryWriter w = new BinaryWriter(mem); w.Write(f); returnval = (UInt32)(buf[0] | (buf[1] &lt;&lt; 8) | (buf[2] &lt;&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsshun.hatenadiary.org%2Fentry%2F20101103%2F1288800114&quot; title=&quot;C#でfloatをbit単位でアクセスする? - sshun@Robot&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>2010-11-03 01:01:54</published>
  <title>C#でfloatをbit単位でアクセスする?</title>
  <type>rich</type>
  <url>https://sshun.hatenadiary.org/entry/20101103/1288800114</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
