Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2003-02-03 05:38:48 +0300
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2003-02-03 05:38:48 +0300
commit9119c83a15b2991f31e86953d1328d6133c5c2f4 (patch)
tree199f736dc439eadfdcf792df75565437dc9ee57f /mcs/class/corlib/System.IO/MemoryStream.cs
parent3444afed80fbd998a5d3e54ae1eb96d67ec1204e (diff)
2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System/AppDomain.cs: implemented AppendPrivatePath, ClearPrivatePath and ClearShadowCopyPath and fixed GetType (). * System/Attribute.cs: clean up. * System/Console.cs: removed UnixConsoleEncoding. Use Default. * System.IO/MemoryStream.cs: create the buffer of the specified capacity. * System.Text/Encoding.cs: removed UnixConsoleEncoding. svn path=/trunk/mcs/; revision=11147
Diffstat (limited to 'mcs/class/corlib/System.IO/MemoryStream.cs')
-rw-r--r--mcs/class/corlib/System.IO/MemoryStream.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.IO/MemoryStream.cs b/mcs/class/corlib/System.IO/MemoryStream.cs
index 15fc073df28..63de28dbe05 100644
--- a/mcs/class/corlib/System.IO/MemoryStream.cs
+++ b/mcs/class/corlib/System.IO/MemoryStream.cs
@@ -52,7 +52,7 @@ namespace System.IO {
this.capacity = capacity;
initialLength = 0;
- internalBuffer = new byte[ 0 ];
+ internalBuffer = new byte [capacity];
expandable = true;
allowGetBuffer = true;