public static extern IntPtr vector_uchar_new2(IntPtr size); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]
/// <summary> /// /// </summary> /// <param name="size"></param> public VectorOfByte(int size) { if (size < 0) { throw new ArgumentOutOfRangeException("nameof(size)"); } ptr = NativeMethods.vector_uchar_new2(new IntPtr(size)); }