Method BlockCopy
BlockCopy(NativeTensorArray, int, byte[], int, int)
Copies the data from a source NativeTensorArray to a destination byte array up to a given length starting from given offsets.
Declaration
public static void BlockCopy(NativeTensorArray sourceArray, int sourceOffset, byte[] destinationArray, int destinationByteOffset, int lengthInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeTensorArray | sourceArray | The array to copy from. |
| int | sourceOffset | The index of the first element to copy from. |
| byte[] | destinationArray | The array to copy to. |
| int | destinationByteOffset | The offset in bytes to copy to in the destination array. |
| int | lengthInBytes | The number of bytes to copy. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the given indexes and length are out of bounds of the source or destination array. |
BlockCopy(byte[], int, NativeTensorArray, int, int)
Copies the data from a source byte array to a destination NativeTensorArray up to a given length starting from given offsets.
Declaration
public static void BlockCopy(byte[] sourceArray, int sourceByteOffset, NativeTensorArray destinationArray, int destinationByteOffset, int lengthInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | sourceArray | The array to copy from. |
| int | sourceByteOffset | The offset in bytes to copy from. |
| NativeTensorArray | destinationArray | The array to copy to. |
| int | destinationByteOffset | The offset in bytes to copy to in the destination array. |
| int | lengthInBytes | The number of bytes to copy. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the given indexes and length are out of bounds of the source or destination array. |