Rename another Stream.Write(byte[]) extension method.

This commit is contained in:
Paul Chote
2018-03-07 20:27:22 +00:00
committed by abcdefg30
parent fadcfa0828
commit e69cf4fd5c
4 changed files with 39 additions and 44 deletions

View File

@@ -16,13 +16,6 @@ namespace OpenRA.Network
{
public static class OrderIO
{
// 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);
}
public static List<Order> ToOrderList(this byte[] bytes, World world)
{
var ms = new MemoryStream(bytes, 4, bytes.Length - 4);