mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Update Array.bf
Remove length parameter.
This commit is contained in:
parent
8ee09f278f
commit
dd33da0d7c
1 changed files with 5 additions and 5 deletions
|
@ -274,12 +274,12 @@ namespace System
|
|||
Internal.MemCpy(destination.Ptr, &GetRef(0), strideof(T) * mLength, alignof(T));
|
||||
}
|
||||
|
||||
public void CopyTo(Span<T> destination, int srcOffset, int length)
|
||||
public void CopyTo(Span<T> destination, int srcOffset)
|
||||
{
|
||||
Debug.Assert(length >= 0);
|
||||
Debug.Assert((uint)srcOffset + (uint)length <= (uint)mLength);
|
||||
Debug.Assert((uint)length <= (uint)destination.Length);
|
||||
Internal.MemCpy(destination.Ptr, &GetRef(srcOffset), strideof(T) * length, alignof(T));
|
||||
Debug.Assert(destination.Length >= mLength);
|
||||
Debug.Assert((uint)srcOffset <= (uint)mLength);
|
||||
|
||||
Internal.MemCpy(destination.Ptr, &GetRef(srcOffset), strideof(T) * (mLength - srcOffset), alignof(T));
|
||||
}
|
||||
|
||||
public Span<T>.Enumerator GetEnumerator()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue