System.Runtime.InteropServices.Marshal.Copy Method

Copies data from a one-dimensional, managed single-precision floating-point number array to an unmanaged memory pointer.

Syntax

public static void Copy (float[] source, int startIndex, IntPtr destination, int length)

Parameters

source
The one-dimensional array to copy from.
startIndex
The zero-based index in the source array where copying should start.
destination
The memory pointer to copy to.
length
The number of array elements to copy.

Remarks

You can use this method to copy a subset of a one-dimensional managed array to an unmanaged C-style array.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0