Skip to content

Commit 215abb5

Browse files
authored
Provide Span overload for SetRectRadii (#2949)
1 parent 9fde53e commit 215abb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

binding/SkiaSharp/SKRoundRect.cs

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ public void SetRectRadii (SKRect rect, SKPoint[] radii)
122122
{
123123
if (radii == null)
124124
throw new ArgumentNullException (nameof (radii));
125+
126+
SetRectRadii(rect, radii.AsSpan());
127+
}
128+
129+
public void SetRectRadii (SKRect rect, ReadOnlySpan<SKPoint> radii)
130+
{
125131
if (radii.Length != 4)
126132
throw new ArgumentException ("Radii must have a length of 4.", nameof (radii));
127133

0 commit comments

Comments
 (0)