Cosmos/source/Indy.IL2CPU.IL.X86/CustomImplementations/System/StringImpl.cs
2007-10-11 18:04:03 +00:00

29 lines
706 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.IL.X86.CustomImplementations.System {
public static class StringImpl {
public static unsafe int get_Length_Normal(uint* aThis) {
int xArrayPtrNumber = (int)*(aThis + 3);
int* xArrayPtr = (int*)xArrayPtrNumber;
return *(xArrayPtr + 2);
}
public static unsafe int get_Length_Metal(uint* aThis) {
return (int)*aThis;
}
public static byte GetByteFromChar(char aChar) {
return 0;
}
public static unsafe byte get_Chars_Metal(byte* aThis, int aIndex) {
byte* xThis = aThis;
xThis += 4;
xThis += aIndex;
return *xThis;
}
}
}