1
0
Fork 0
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:
Damian Day 2020-05-27 17:26:35 +01:00
parent 8ee09f278f
commit dd33da0d7c

View file

@ -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()