mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 21:42:11 +00:00
Set string.empty.
This commit is contained in:
parent
3c52efaac6
commit
6ed36d75b6
1 changed files with 6 additions and 0 deletions
|
|
@ -12,9 +12,11 @@ namespace Cosmos.Core.Plugs.System
|
||||||
public static unsafe void Ctor(
|
public static unsafe void Ctor(
|
||||||
string aThis,
|
string aThis,
|
||||||
char[] aChars,
|
char[] aChars,
|
||||||
|
[FieldAccess(Name = "System.String System.String.Empty")] ref string aStringEmpty,
|
||||||
[FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength,
|
[FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength,
|
||||||
[FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar)
|
[FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar)
|
||||||
{
|
{
|
||||||
|
aStringEmpty = "";
|
||||||
aStringLength = aChars.Length;
|
aStringLength = aChars.Length;
|
||||||
for (int i = 0; i < aChars.Length; i++)
|
for (int i = 0; i < aChars.Length; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -27,9 +29,11 @@ namespace Cosmos.Core.Plugs.System
|
||||||
char[] aChars,
|
char[] aChars,
|
||||||
int start,
|
int start,
|
||||||
int length,
|
int length,
|
||||||
|
[FieldAccess(Name = "System.String System.String.Empty")] ref string aStringEmpty,
|
||||||
[FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength,
|
[FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength,
|
||||||
[FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar)
|
[FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar)
|
||||||
{
|
{
|
||||||
|
aStringEmpty = "";
|
||||||
aStringLength = length;
|
aStringLength = length;
|
||||||
for (int i = 0; i < length; i++)
|
for (int i = 0; i < length; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -41,9 +45,11 @@ namespace Cosmos.Core.Plugs.System
|
||||||
string aThis,
|
string aThis,
|
||||||
char aChar,
|
char aChar,
|
||||||
int aLength,
|
int aLength,
|
||||||
|
[FieldAccess(Name = "System.String System.String.Empty")] ref string aStringEmpty,
|
||||||
[FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength,
|
[FieldAccess(Name = "System.Int32 System.String.m_stringLength")] ref int aStringLength,
|
||||||
[FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar)
|
[FieldAccess(Name = "System.Char System.String.m_firstChar")] char* aFirstChar)
|
||||||
{
|
{
|
||||||
|
aStringEmpty = "";
|
||||||
aStringLength = aLength;
|
aStringLength = aLength;
|
||||||
for (int i = 0; i < aLength; i++)
|
for (int i = 0; i < aLength; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue