private vector_vector_float_getSize2 ( IntPtr vector, [ size ) : void | ||
vector | IntPtr | |
size | [ | |
return | void |
public static extern void vector_vector_float_getSize2(IntPtr vector, [In, Out] IntPtr[] size);
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]
/// <summary> /// vector[i].size() /// </summary> public IReadOnlyList <long> GetSize2() { var size1 = GetSize1(); var size2Org = new IntPtr[size1]; NativeMethods.vector_vector_float_getSize2(ptr, size2Org); GC.KeepAlive(this); var size2 = new long[size1]; for (var i = 0; i < size1; i++) { size2[i] = size2Org[i].ToInt64(); } return(size2); }