Cosmos/source/Indy.IL2CPU/CustomImplementation/System/ObjectImpl.cs
2007-09-27 16:55:00 +00:00

28 lines
891 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU {
public enum InstanceTypeEnum {
NormalObject = 1,
Array = 2,
BoxedValueType = 3
}
public static class ObjectImpl {
/// <summary>
/// <para>
/// The object first stores any metadata involved. (Most likely containing a reference to the
/// object type). This is the number of bytes.
/// </para>
/// <para>
/// The first 4 bytes are the reference to the type information of the instance, the second 4 bytes
/// are the <see cref="InstanceTypeEnum"/> value. For arrays, there are 4 following bytes containing the element count.
/// </para>
/// </summary>
public const uint FieldDataOffset = 8;
[MethodAlias(Name = "System_Void___System_Object__ctor____")]
public static void Ctor(IntPtr aThis) {
}
}
}