63 lines
2.1 KiB
C#
63 lines
2.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
/// <summary>Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited.</summary>
|
|
// Token: 0x02000558 RID: 1368
|
|
[Token(Token = "0x2000558")]
|
|
[AttributeUsage(AttributeTargets.Field)]
|
|
public sealed class FixedBufferAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.FixedBufferAttribute" /> class.</summary>
|
|
/// <param name="elementType">The type of the elements contained in the buffer.</param>
|
|
/// <param name="length">The number of elements in the buffer.</param>
|
|
// Token: 0x06002A6E RID: 10862 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A6E")]
|
|
[Address(RVA = "0x582150", Offset = "0x580F50", VA = "0x180582150")]
|
|
public FixedBufferAttribute(Type elementType, int length)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the type of the elements contained in the fixed buffer.</summary>
|
|
/// <returns>The type of the elements.</returns>
|
|
// Token: 0x1700064A RID: 1610
|
|
// (get) Token: 0x06002A6F RID: 10863 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700064A")]
|
|
public Type ElementType
|
|
{
|
|
[Token(Token = "0x6002A6F")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the number of elements in the fixed buffer.</summary>
|
|
/// <returns>The number of elements in the fixed buffer.</returns>
|
|
// Token: 0x1700064B RID: 1611
|
|
// (get) Token: 0x06002A70 RID: 10864 RVA: 0x00016908 File Offset: 0x00014B08
|
|
[Token(Token = "0x1700064B")]
|
|
public int Length
|
|
{
|
|
[Token(Token = "0x6002A70")]
|
|
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400189A RID: 6298
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400189A")]
|
|
private Type elementType;
|
|
|
|
// Token: 0x0400189B RID: 6299
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400189B")]
|
|
private int length;
|
|
}
|
|
}
|