TradeMUX SDK Documentation
1.0
TradeMUX SDK Documentation
|
int ArrayCopy< T > | ( | TMXArray< T > | dest, |
TMXArray< T > | source, | ||
int | start_dest = 0 , |
||
int | start_source = 0 , |
||
int | count = WHOLE_ARRAY |
||
) |
Copies an array into another one
T | Array content type |
dest | Destination array |
source | Source array |
start_dest | Starting index from the destination array. By default, start index is 0 |
start_source | Starting index for the source array. By default, start index is 0 |
count | Number of elements that should be copied. By default, the whole array is copied |
If count <=0 or count>src_size-src_start, all the remaining array part is copied. Arrays are copied from left to right.
For series arrays, the starting position is correctly defined adjusted for copying from left to right. If an array is copied to itself,
the result is undefined.