We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4392d4f commit 59d3744Copy full SHA for 59d3744
1 file changed
Types/Color.cs
@@ -23,7 +23,7 @@ public Color(byte r, byte g, byte b, byte a)
23
public static bool operator !=(Color a, Color b)
24
=> !(a == b);
25
26
- public static Color FromBytes(byte[] bytes)
+ public static Color FromBytes(ReadOnlySpan<byte> bytes)
27
=> new(bytes[0], bytes[1], bytes[2], bytes[3]);
28
29
public byte[] ToBytes()
0 commit comments