 |
MemoryUtilsCopyToArray Method |
Copies the size bytes from the source to the destinationArray.
When source is aligned to 32, then non-temporal avx copy was performed.
When destination array is not aligned to 32, then it can be resized and destinationArrayOffset is set to the offset when the data start.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static bool CopyToArray(
IntPtr source,
ref byte[]?? destinationArray,
int size,
out int? destinationArrayOffset
)
Parameters
- source IntPtr
- source as IntPtr (needs to be aligned to 32 for advanced copy to be used)
- destinationArray Byte
- reference to teh destination byte array
- size Int32
- size in bytes
- destinationArrayOffset Int32
- When destination array is not aligned to 32, then it can be resized and destinationArrayOffset is set to the offset when the data start
Return Value
Booleantrue when non-temporal avx copy was used; false when standard memory copy is used
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MemoryUtils.CopyToArray(System.IntPtr,System.Byte[]@,System.Int32,System.Int32@)"]
See Also