mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
2d array CopyTo
This commit is contained in:
parent
d48274694e
commit
1e528cba95
1 changed files with 7 additions and 1 deletions
|
@ -568,7 +568,13 @@ namespace System
|
|||
public T* CArray()
|
||||
{
|
||||
return &mFirstElement;
|
||||
}
|
||||
}
|
||||
|
||||
public void CopyTo(T[,] arrayTo)
|
||||
{
|
||||
Debug.Assert(arrayTo.mLength >= mLength);
|
||||
Internal.MemCpy(&arrayTo.GetRef(0), &GetRef(0), strideof(T) * mLength, alignof(T));
|
||||
}
|
||||
|
||||
public Span<T>.Enumerator GetEnumerator()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue