CvToolboxCopyVectorTData Method |
http://www.emgu.com
Copy a generic vector to the unmanaged memory
Namespace:
Emgu.CV.Util
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic static int CopyVector<TData>(
TData[] src,
IntPtr dest,
int bytesToCopy = -1
)
Public Shared Function CopyVector(Of TData) (
src As TData(),
dest As IntPtr,
Optional bytesToCopy As Integer = -1
) As Integer
public:
generic<typename TData>
static int CopyVector(
array<TData>^ src,
IntPtr dest,
int bytesToCopy = -1
)
static member CopyVector :
src : 'TData[] *
dest : IntPtr *
?bytesToCopy : int
(* Defaults:
let _bytesToCopy = defaultArg bytesToCopy -1
*)
-> int
Parameters
- src
- Type: TData
The source vector - dest
- Type: SystemIntPtr
Pointer to the destination unmanaged memory - bytesToCopy (Optional)
- Type: SystemInt32
Specify the number of bytes to copy. If this is -1, the number of bytes equals the number of bytes in the src
Type Parameters
- TData
- The data type of the vector
Return Value
Type:
Int32The number of bytes copied
See Also