Skip to content

Commit 59d3744

Browse files
authored
Ask for ReadOnlySpan in Color.FromBytes
1 parent 4392d4f commit 59d3744

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Types/Color.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Color(byte r, byte g, byte b, byte a)
2323
public static bool operator !=(Color a, Color b)
2424
=> !(a == b);
2525

26-
public static Color FromBytes(byte[] bytes)
26+
public static Color FromBytes(ReadOnlySpan<byte> bytes)
2727
=> new(bytes[0], bytes[1], bytes[2], bytes[3]);
2828

2929
public byte[] ToBytes()

0 commit comments

Comments
 (0)