// - edit Vector.copy.tt to modify
#nullable enable
namespace Brutal.Numerics;
public partial struct sbyte3
{
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly void CopyTo(Span destination)
{
if (destination.Length < ComponentCount)
throw new ArgumentException("Length must be at least 3.", nameof(destination));
Unsafe.WriteUnaligned(ref Unsafe.As(ref MemoryMarshal.GetReference(destination)), this);
}
///
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly bool TryCopyTo(Span destination)
{
if (destination.Length < ComponentCount)
return false;
Unsafe.WriteUnaligned(ref Unsafe.As(ref MemoryMarshal.GetReference(destination)), this);
return true;
}
}