(BinMemoryStream): made name optional in constructor.

This commit is contained in:
morkt 2016-10-16 18:28:10 +04:00
parent 1d16700780
commit 3a1bae1a19

View File

@ -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
{