Opc.Ua.Com.ComUtils.GetInt32s C# (CSharp) Method

GetInt32s() public static method

Allocates and marshals an array of 32 bit integers.
public static GetInt32s ( int input ) : IntPtr
input int
return System.IntPtr
		public static IntPtr GetInt32s(int[] input)
		{
			IntPtr output = IntPtr.Zero;

			if (input != null)
			{
				output = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(Int32))*input.Length);
				Marshal.Copy(input, 0, output, input.Length);
			}

			return output;
		}

Same methods

ComUtils::GetInt32s ( IntPtr &pArray, int size, bool deallocate ) : int[]