Rename Stream.Write(byte[]) extension method to fix compatibility with newer mono.

This commit is contained in:
Paul Chote
2018-03-01 19:49:55 +00:00
committed by Matthias Mailänder
parent 9ce0bcb0b7
commit 42f1db0d4b
4 changed files with 18 additions and 16 deletions

View File

@@ -16,7 +16,9 @@ namespace OpenRA.Network
{
public static class OrderIO
{
public static void Write(this Stream s, byte[] buf)
// Note: renamed from Write() to avoid being aliased by
// System.IO.Stream.Write(System.ReadOnlySpan) (which is not implemented in Mono)
public static void WriteArray(this Stream s, byte[] buf)
{
s.Write(buf, 0, buf.Length);
}