Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 Span 和 stackalloc 来分配结构数组并将其传递给互操作调用。是否可以在不安全的情况下从 Span 中检索指针(IntPtr)?