[Mono-devel-list] Re: CodeDom in Compiler.cs

Atsushi Eno atsushi at ximian.com
Tue Apr 5 17:39:41 EDT 2005


With all the hints David left, I actually wrote a simple case
that Convert.FromBase64String() does not reject incorrect value
while it should.

Atsushi Eno

Andrew Skiba wrote:
> Atsushi Eno wrote:
> 
>> I am not David so I'm not 100% sure (you could ask him directly).
>> But I can guess from his comment - he wrote that the input string
>> must be ASCII. And once it is transformed into byte[] by
>> ASCIIEncoding .GetBytes(), it could be more efficient to use
>> TransformBlock() that expects byte[].
> 
> 
> Yes, but initially what we have is string. So why transform string to 
> byte[] if you can do all job in Convert.FromBase64String in one pass?
> 
> Andrew Skiba.
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: base64.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050406/021c4283/attachment.pl 


More information about the Mono-devel-list mailing list