{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F07%2F19%2F143256\" title=\"C# Span&lt;byte&gt;\u306e\u8981\u7d20\u53c2\u7167\u304b\u3089nint\u3078\u306e\u5909\u63db\u306e\u7f60 - 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>","width":"100%","title":"C# Span<byte>\u306e\u8981\u7d20\u53c2\u7167\u304b\u3089nint\u3078\u306e\u5909\u63db\u306e\u7f60","categories":["C#"],"description":"Span<byte>\u306e\u8981\u7d20\u53c2\u7167\u304b\u3089\u914d\u5217\u3092\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3057\u3088\u3046\u3068\u3057\u3066\u3001\u4ed5\u69d8\u901a\u308a\u306e\u52d5\u4f5c\uff08\u53c2\u7167\u578b\u306eref\u7121\u3057\u4ee3\u5165\u3068\u6574\u6570\u578b\u306e\u6697\u9ed9\u30a2\u30c3\u30d7\u30ad\u30e3\u30b9\u30c8\uff09\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u5177\u4f53\u7684\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002 var buf = new byte[256]; var t = Marshal.PtrToStructure<byte>(MemoryMarshal.GetArrayDataReference(buf)); // System.NullReferenceException: 'Object reference not set to an instance of an object.' \u3053\u306e\u539f\u56e0\u306f\u6b21\u306e\u30b3\u2026","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/potisan/","version":"1.0","url":"https://potisan-programming-memo.hatenablog.jp/entry/2026/07/19/143256","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","author_name":"potisan","height":"190","blog_url":"https://potisan-programming-memo.hatenablog.jp/","published":"2026-07-19 14:32:56","type":"rich","image_url":null}