Cosmos/source2/Kernel/System/Cosmos.System.Plugs.System/Text/ASCIIEncodingImpl.cs
Trivalik_cp 00ae6acb11 comment out ASCIIEncodingImpl, because is all CIL internal
comment in string.FastAllocateString plug
2011-06-11 00:37:21 +00:00

26 lines
No EOL
784 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.IL2CPU.Plugs;
namespace Cosmos.System.Plugs.System.Text {
[Plug(Target = typeof(ASCIIEncoding))]
public class ASCIIEncodingImpl {
// TODO: remove this function
// old comment :Plug string.GetStringFromEncoding instead
/*public static string GetString(byte[] aBytes, int aIndex, int aCount) {
if (aBytes.Length == 0) {
return string.Empty;
} else {
return new string(Encoding.ASCII.GetChars(aBytes, aIndex, aCount));
/*var xChars = new char[aBytes.Length];
for (int i = 0; i < aBytes.Length; i++) {
xChars[i] = (char)aBytes[i];
}
return new string(xChars);
}
}*/
}
}