광고


[C#] Convert C# float[] to C++ float* C#

1
2
3
4
5
6
7
8
9
10
11
// C#
 
unsafe
{
    fixed (float* ptr_f = f) //or equivalently "... = &f[0]" address of f[0]
    fixed (float* ptr_f2 = f2) //or equivalently "... = &f2[0]" address of f2[0]
    {
        // to C++ Functions // sending float* variable
        function( ptr_f, ptr_f2 );
    }
}
cs

덧글

댓글 입력 영역



광고

통계 위젯 (화이트)

00
7
9534

TEST