C#调用C++的DLL函数结构体指针参数的传递

头文件中包含两个结构体,一个结构嵌套到另一个结构体中当结构体数组

C++的方法名:void Radar_Decode(ROAD_CONDITION_S* pstResult, char* pcRecBuf, unsigned int u32RecNum)

Unity中调用为[DllImport("RADARDLL", CharSet = CharSet.Unicode)]
    public static extern void Radar_Decode(IntPtr  r1,
        [MarshalAs(UnmanagedType.LPStr)] string buffData, uint count);