如何在C++/CLI中指定固定大小的缓冲区?

Sim*_*mon 5 c++-cli

在C#中,我可以使用关键字指定固定大小的缓冲区fixed,如下所示:

public unsafe struct StructWithFixedBuffer
{
    public fixed char FixedBuffer[128];
}
Run Code Online (Sandbox Code Playgroud)

我将如何在C++/CLI中表达同样的事情?

Ben*_*igt 10

其中一个C++/CLI开发人员博客为此提供了模板解决方案的代码,我将尝试查找链接.

啊,找到了.它被称为inline_array.