Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/CompilerServices/FixedBufferAttribute.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02000576 RID: 1398
[Token(Token = "0x2000576")]
[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: 0x06002C7D RID: 11389 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C7D")]
[Address(RVA = "0xE66140", Offset = "0xE65140", VA = "0x180E66140")]
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: 0x170006C2 RID: 1730
// (get) Token: 0x06002C7E RID: 11390 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006C2")]
public Type ElementType
{
[Token(Token = "0x6002C7E")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
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: 0x170006C3 RID: 1731
// (get) Token: 0x06002C7F RID: 11391 RVA: 0x00018CD8 File Offset: 0x00016ED8
[Token(Token = "0x170006C3")]
public int Length
{
[Token(Token = "0x6002C7F")]
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
get
{
return 0;
}
}
// Token: 0x0400195D RID: 6493
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400195D")]
private Type elementType;
// Token: 0x0400195E RID: 6494
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400195E")]
private int length;
}
}