mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
2d array CopyTo
This commit is contained in:
parent
d48274694e
commit
1e528cba95
1 changed files with 7 additions and 1 deletions
|
@ -570,6 +570,12 @@ namespace System
|
||||||
return &mFirstElement;
|
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()
|
public Span<T>.Enumerator GetEnumerator()
|
||||||
{
|
{
|
||||||
return .(.(&mFirstElement, mLength));
|
return .(.(&mFirstElement, mLength));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue