diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2004-05-06 20:37:34 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2004-05-06 20:37:34 +0400 |
commit | f4149bac0c79287703187309902a5c6b063a327b (patch) | |
tree | 7f0d93d7e5bfb0db9d34cd66c5760ad08beb359c /mcs/class/corlib/System/Convert.cs | |
parent | 9d7ae5025394060afb1c55db03f1e0230de6e9ae (diff) |
2004-05-06 Sebastien Pouliot <sebastien@ximian.com>
* Convert.cs: ToBase64String method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26850
Diffstat (limited to 'mcs/class/corlib/System/Convert.cs')
-rw-r--r-- | mcs/class/corlib/System/Convert.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/corlib/System/Convert.cs b/mcs/class/corlib/System/Convert.cs index e6b4ffeae09..4583d8e9f9f 100644 --- a/mcs/class/corlib/System/Convert.cs +++ b/mcs/class/corlib/System/Convert.cs @@ -188,8 +188,8 @@ namespace System { if (offset < 0 || length < 0 || (offset + length) > inArray.Length)
throw new ArgumentOutOfRangeException();
- // FIXME: change to stand alone Base64 Encoder class
- byte[] outArr = toBase64Transform.TransformFinalBlock(inArray, offset, length);
+ // note: normally ToBase64Transform doesn't support multiple block processing + byte[] outArr = toBase64Transform.InternalTransformFinalBlock (inArray, offset, length);
return (new System.Text.ASCIIEncoding().GetString(outArr));
}
|