mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 13:58:47 +00:00
23 lines
514 B
C#
23 lines
514 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(int* aThis) {
|
|
return *(aThis + 2);
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|