diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2003-02-03 05:38:48 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2003-02-03 05:38:48 +0300 |
commit | 9119c83a15b2991f31e86953d1328d6133c5c2f4 (patch) | |
tree | 199f736dc439eadfdcf792df75565437dc9ee57f /mcs/class/corlib/System.IO/MemoryStream.cs | |
parent | 3444afed80fbd998a5d3e54ae1eb96d67ec1204e (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.cs | 2 |
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;
|