Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ConstArray.cs
Go to the documentation of this file.
1
namespace
System.Reflection
;
2
3
internal
readonly
struct
ConstArray
4
{
5
internal
readonly
int
m_length
;
6
7
internal
readonly
IntPtr
m_constArray
;
8
9
public
IntPtr
Signature
=>
m_constArray
;
10
11
public
int
Length
=>
m_length
;
12
13
public
unsafe
byte
this
[
int
index
]
14
{
15
get
16
{
17
if
(index < 0 || index >=
m_length
)
18
{
19
throw
new
IndexOutOfRangeException
();
20
}
21
return
((
byte
*)
m_constArray
.
ToPointer
())[
index
];
22
}
23
}
24
}
System.IndexOutOfRangeException
Definition
IndexOutOfRangeException.cs:9
System.Signature
Definition
Signature.cs:8
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.ExceptionArgument.index
@ index
System.IntPtr.ToPointer
unsafe void * ToPointer()
Definition
IntPtr.cs:210
System.IntPtr
Definition
IntPtr.cs:14
System.Reflection.ConstArray.Length
int Length
Definition
ConstArray.cs:11
System.Reflection.ConstArray.m_constArray
readonly IntPtr m_constArray
Definition
ConstArray.cs:7
System.Reflection.ConstArray.m_length
readonly int m_length
Definition
ConstArray.cs:5
System.Reflection.ConstArray
Definition
ConstArray.cs:4
source
System.Private.CoreLib
System.Reflection
ConstArray.cs
Generated by
1.10.0