Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
ModuleTableReader.cs
Go to the documentation of this file.
1
using
System.Reflection.Internal
;
2
3
namespace
System.Reflection.Metadata.Ecma335
;
4
5
internal
readonly
struct
ModuleTableReader
6
{
7
internal
readonly
int
NumberOfRows
;
8
9
private
readonly
bool
_IsStringHeapRefSizeSmall
;
10
11
private
readonly
bool
_IsGUIDHeapRefSizeSmall
;
12
13
private
readonly
int
_GenerationOffset
;
14
15
private
readonly
int
_NameOffset
;
16
17
private
readonly
int
_MVIdOffset
;
18
19
private
readonly
int
_EnCIdOffset
;
20
21
private
readonly
int
_EnCBaseIdOffset
;
22
23
internal
readonly
int
RowSize
;
24
25
internal
readonly
MemoryBlock
Block
;
26
27
internal
ModuleTableReader
(
int
numberOfRows,
int
stringHeapRefSize,
int
guidHeapRefSize,
MemoryBlock
containingBlock,
int
containingBlockOffset)
28
{
29
NumberOfRows
= numberOfRows;
30
_IsStringHeapRefSizeSmall
= stringHeapRefSize == 2;
31
_IsGUIDHeapRefSizeSmall
= guidHeapRefSize == 2;
32
_GenerationOffset
= 0;
33
_NameOffset
=
_GenerationOffset
+ 2;
34
_MVIdOffset
=
_NameOffset
+ stringHeapRefSize;
35
_EnCIdOffset
=
_MVIdOffset
+ guidHeapRefSize;
36
_EnCBaseIdOffset
=
_EnCIdOffset
+ guidHeapRefSize;
37
RowSize
=
_EnCBaseIdOffset
+ guidHeapRefSize;
38
Block
= containingBlock.
GetMemoryBlockAt
(containingBlockOffset,
RowSize
* numberOfRows);
39
}
27
internal
ModuleTableReader
(
int
numberOfRows,
int
stringHeapRefSize,
int
guidHeapRefSize,
MemoryBlock
containingBlock,
int
containingBlockOffset) {
…
}
40
41
internal
ushort
GetGeneration
()
42
{
43
return
Block
.
PeekUInt16
(
_GenerationOffset
);
44
}
41
internal
ushort
GetGeneration
() {
…
}
45
46
internal
StringHandle
GetName
()
47
{
48
return
StringHandle
.
FromOffset
(
Block
.
PeekHeapReference
(
_NameOffset
,
_IsStringHeapRefSizeSmall
));
49
}
46
internal
StringHandle
GetName
() {
…
}
50
51
internal
GuidHandle
GetMvid
()
52
{
53
return
GuidHandle
.
FromIndex
(
Block
.
PeekHeapReference
(
_MVIdOffset
,
_IsGUIDHeapRefSizeSmall
));
54
}
51
internal
GuidHandle
GetMvid
() {
…
}
55
56
internal
GuidHandle
GetEncId
()
57
{
58
return
GuidHandle
.
FromIndex
(
Block
.
PeekHeapReference
(
_EnCIdOffset
,
_IsGUIDHeapRefSizeSmall
));
59
}
56
internal
GuidHandle
GetEncId
() {
…
}
60
61
internal
GuidHandle
GetEncBaseId
()
62
{
63
return
GuidHandle
.
FromIndex
(
Block
.
PeekHeapReference
(
_EnCBaseIdOffset
,
_IsGUIDHeapRefSizeSmall
));
64
}
61
internal
GuidHandle
GetEncBaseId
() {
…
}
65
}
5
internal
readonly
struct
ModuleTableReader
{
…
};
System.Reflection.Internal
Definition
AbstractMemoryBlock.cs:4
System.Reflection.Metadata.Ecma335
Definition
ArrayShapeEncoder.cs:3
System.Reflection.Internal.MemoryBlock.PeekUInt16
unsafe ushort PeekUInt16(int offset)
Definition
MemoryBlock.cs:166
System.Reflection.Internal.MemoryBlock.GetMemoryBlockAt
unsafe MemoryBlock GetMemoryBlockAt(int offset, int length)
Definition
MemoryBlock.cs:102
System.Reflection.Internal.MemoryBlock.PeekHeapReference
int PeekHeapReference(int offset, bool smallRefSize)
Definition
MemoryBlock.cs:201
System.Reflection.Internal.MemoryBlock
Definition
MemoryBlock.cs:11
System.Reflection.Metadata.Ecma335.ModuleTableReader._IsStringHeapRefSizeSmall
readonly bool _IsStringHeapRefSizeSmall
Definition
ModuleTableReader.cs:9
System.Reflection.Metadata.Ecma335.ModuleTableReader._MVIdOffset
readonly int _MVIdOffset
Definition
ModuleTableReader.cs:17
System.Reflection.Metadata.Ecma335.ModuleTableReader._EnCBaseIdOffset
readonly int _EnCBaseIdOffset
Definition
ModuleTableReader.cs:21
System.Reflection.Metadata.Ecma335.ModuleTableReader._IsGUIDHeapRefSizeSmall
readonly bool _IsGUIDHeapRefSizeSmall
Definition
ModuleTableReader.cs:11
System.Reflection.Metadata.Ecma335.ModuleTableReader.Block
readonly MemoryBlock Block
Definition
ModuleTableReader.cs:25
System.Reflection.Metadata.Ecma335.ModuleTableReader._GenerationOffset
readonly int _GenerationOffset
Definition
ModuleTableReader.cs:13
System.Reflection.Metadata.Ecma335.ModuleTableReader._EnCIdOffset
readonly int _EnCIdOffset
Definition
ModuleTableReader.cs:19
System.Reflection.Metadata.Ecma335.ModuleTableReader.NumberOfRows
readonly int NumberOfRows
Definition
ModuleTableReader.cs:7
System.Reflection.Metadata.Ecma335.ModuleTableReader.GetMvid
GuidHandle GetMvid()
Definition
ModuleTableReader.cs:51
System.Reflection.Metadata.Ecma335.ModuleTableReader.GetEncId
GuidHandle GetEncId()
Definition
ModuleTableReader.cs:56
System.Reflection.Metadata.Ecma335.ModuleTableReader.ModuleTableReader
ModuleTableReader(int numberOfRows, int stringHeapRefSize, int guidHeapRefSize, MemoryBlock containingBlock, int containingBlockOffset)
Definition
ModuleTableReader.cs:27
System.Reflection.Metadata.Ecma335.ModuleTableReader.GetGeneration
ushort GetGeneration()
Definition
ModuleTableReader.cs:41
System.Reflection.Metadata.Ecma335.ModuleTableReader.GetName
StringHandle GetName()
Definition
ModuleTableReader.cs:46
System.Reflection.Metadata.Ecma335.ModuleTableReader.RowSize
readonly int RowSize
Definition
ModuleTableReader.cs:23
System.Reflection.Metadata.Ecma335.ModuleTableReader._NameOffset
readonly int _NameOffset
Definition
ModuleTableReader.cs:15
System.Reflection.Metadata.Ecma335.ModuleTableReader.GetEncBaseId
GuidHandle GetEncBaseId()
Definition
ModuleTableReader.cs:61
System.Reflection.Metadata.Ecma335.ModuleTableReader
Definition
ModuleTableReader.cs:6
System.Reflection.Metadata.GuidHandle.FromIndex
static GuidHandle FromIndex(int heapIndex)
Definition
GuidHandle.cs:18
System.Reflection.Metadata.GuidHandle
Definition
GuidHandle.cs:6
System.Reflection.Metadata.StringHandle.FromOffset
static StringHandle FromOffset(int heapOffset)
Definition
StringHandle.cs:98
System.Reflection.Metadata.StringHandle
Definition
StringHandle.cs:6
source
System.Reflection.Metadata
System.Reflection.Metadata.Ecma335
ModuleTableReader.cs
Generated by
1.10.0