using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

namespace RootMotion
{
	// Token: 0x02000404 RID: 1028
	public class LargeHeader : PropertyAttribute
	{
		// Token: 0x06007DE9 RID: 32233 RVA: 0x002032CC File Offset: 0x002014CC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623205, XrefRangeEnd = 623212, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe LargeHeader(string name)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06007DEA RID: 32234 RVA: 0x00203330 File Offset: 0x00201530
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623212, XrefRangeEnd = 623218, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe LargeHeader(string name, string color)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr))
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(color);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06007DEB RID: 32235 RVA: 0x002033AC File Offset: 0x002015AC
		// Note: this type is marked as 'beforefieldinit'.
		static LargeHeader()
		{
			Il2CppClassPointerStore<LargeHeader>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion", "LargeHeader");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr);
			LargeHeader.NativeFieldInfoPtr_name = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, "name");
			LargeHeader.NativeFieldInfoPtr_color = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, "color");
			LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, 100672898);
			LargeHeader.NativeMethodInfoPtr__ctor_Public_Void_String_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LargeHeader>.NativeClassPtr, 100672899);
		}

		// Token: 0x06007DEC RID: 32236 RVA: 0x0010FC50 File Offset: 0x0010DE50
		public LargeHeader(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17002AD1 RID: 10961
		// (get) Token: 0x06007DED RID: 32237 RVA: 0x0020342C File Offset: 0x0020162C
		// (set) Token: 0x06007DEE RID: 32238 RVA: 0x00203455 File Offset: 0x00201655
		public unsafe string name
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_name);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_name), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x17002AD2 RID: 10962
		// (get) Token: 0x06007DEF RID: 32239 RVA: 0x0020347C File Offset: 0x0020167C
		// (set) Token: 0x06007DF0 RID: 32240 RVA: 0x002034A5 File Offset: 0x002016A5
		public unsafe string color
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_color);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(LargeHeader.NativeFieldInfoPtr_color), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x040054BA RID: 21690
		private static readonly IntPtr NativeFieldInfoPtr_name;

		// Token: 0x040054BB RID: 21691
		private static readonly IntPtr NativeFieldInfoPtr_color;

		// Token: 0x040054BC RID: 21692
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_0;

		// Token: 0x040054BD RID: 21693
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_String_String_0;
	}
}
