forked from Pathfoundry-PTY-LTD/LinFu.DynamicProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStindMap.cs
30 lines (26 loc) · 900 Bytes
/
StindMap.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Reflection.Emit;
using System.Text;
namespace LinFu.DynamicProxy
{
public class StindMap : Dictionary<string, OpCode>
{
public StindMap()
{
var stindMap = this;
stindMap["Bool&"] = OpCodes.Stind_I1;
stindMap["Int8&"] = OpCodes.Stind_I1;
stindMap["Uint8&"] = OpCodes.Stind_I1;
stindMap["Int16&"] = OpCodes.Stind_I2;
stindMap["Uint16&"] = OpCodes.Stind_I2;
stindMap["Uint32&"] = OpCodes.Stind_I4;
stindMap["Int32&"] = OpCodes.Stind_I4;
stindMap["IntPtr"] = OpCodes.Stind_I4;
stindMap["Uint64&"] = OpCodes.Stind_I8;
stindMap["Int64&"] = OpCodes.Stind_I8;
stindMap["Float32&"] = OpCodes.Stind_R4;
stindMap["Float64&"] = OpCodes.Stind_R8;
}
}
}