{"version":"1.0","url":"https://potisan-programming-memo.hatenablog.jp/entry/2026/09/05/230544","author_name":"potisan","categories":["C#"],"image_url":null,"blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F09%2F05%2F230544\" title=\"C# \u69cb\u9020\u4f53\u306e\u30e1\u30e2\u30ea\u30ec\u30a4\u30a2\u30a6\u30c8\u30e1\u30e2 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/potisan/","provider_name":"Hatena Blog","title":"C# \u69cb\u9020\u4f53\u306e\u30e1\u30e2\u30ea\u30ec\u30a4\u30a2\u30a6\u30c8\u30e1\u30e2","description":"StructLayout\u306b\u3088\u308b\u69cb\u9020\u4f53\u306e\u30b5\u30a4\u30ba\u6307\u5b9a\u306fC#\u5074\u306e\u30b5\u30a4\u30ba\u306b\u3082\u6709\u52b9 define STRICT include <Windows.h> StructLayout\u306b\u3088\u308b\u69cb\u9020\u4f53\u306e\u30b5\u30a4\u30ba\u6307\u5b9a\u306fC#\u5074\u306e\u30b5\u30a4\u30ba\u306b\u3082\u6709\u52b9 \u69cb\u9020\u4f53\u306eStructLayout\u5c5e\u6027\u306bLayoutKind.Sequential\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001StructLayout\u5c5e\u6027\u306eSize\u5f15\u6570\u306fC#\u5074\u306e\u69cb\u9020\u4f53\u30b5\u30a4\u30ba\u3082\u8a2d\u5b9a\u3057\u307e\u3059\u3002 using System.Runtime.InteropServices; var struct1 = new Struct1(); var struct1Bytes = MemoryMarshal.A\u2026","width":"100%","blog_url":"https://potisan-programming-memo.hatenablog.jp/","height":"190","type":"rich","published":"2026-09-05 23:05:44"}