From 3a1bae1a19773a0fc72e0268acad7ff7061f7e82 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 16 Oct 2016 18:28:10 +0400 Subject: [PATCH] (BinMemoryStream): made name optional in constructor. --- GameRes/BinaryStream.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameRes/BinaryStream.cs b/GameRes/BinaryStream.cs index d8ed716a..6e4b5161 100644 --- a/GameRes/BinaryStream.cs +++ b/GameRes/BinaryStream.cs @@ -460,10 +460,10 @@ namespace GameRes public uint Signature { get { return m_signature; } } public Stream AsStream { get { return this; } } - public BinMemoryStream (byte[] input, string name) : this (input, 0, input.Length, name) + public BinMemoryStream (byte[] input, string name = "") : this (input, 0, input.Length, name) { } - public BinMemoryStream (byte[] input, int pos, int length, string name) + public BinMemoryStream (byte[] input, int pos, int length, string name = "") { m_source = input; m_start = pos; @@ -471,7 +471,7 @@ namespace GameRes Init (name); } - public BinMemoryStream (MemoryStream input, string name) + public BinMemoryStream (MemoryStream input, string name = "") { try {