You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public SKPoint[] Radii { get; } still exists as it is a convenience and this is accessible using non-arrays by querying each corner individually (which is what this property does)
SKRuntimeEffect.cs
SKShader.cs
SKStream.cs
SKString.cs
SKTextBlob.cs
SKTypeface.cs
SKVertices.cs
SkiaApi.generated.cs
Util.cs
NOTE: not all usages are bad. There are cases where returning an array is acceptable because we have span alternatives, or the data is best contained in an array.
The text was updated successfully, but these errors were encountered:
Description
Part of #2615
The SkiaSharp codebase is quite old and existed before the introduction of spans. (See more https://learn.microsoft.com/en-us/dotnet/standard/memory-and-spans/memory-t-usage-guidelines)
Current files in the core binding using arrays:
public byte[] ToArray ()
is intentially an array, there is:public ReadOnlySpan<byte> AsSpan ()
public Span<byte> Span { get; }
public SKPoint[] Radii { get; }
still exists as it is a convenience and this is accessible using non-arrays by querying each corner individually (which is what this property does)The text was updated successfully, but these errors were encountered: