@@ -14,7 +14,7 @@ namespace HybridCLR
1414 public static class RuntimeApi
1515 {
1616 /// <summary>
17- /// 加载补充元数据assembly
17+ /// load supplementary metadata assembly
1818 /// </summary>
1919 /// <param name="dllBytes"></param>
2020 /// <returns></returns>
@@ -30,7 +30,7 @@ public static unsafe LoadImageErrorCode LoadMetadataForAOTAssembly(byte[] dllByt
3030#endif
3131
3232 /// <summary>
33- /// 获取解释器线程栈的最大StackObject个数 (size*8 为最终占用的内存大小)
33+ /// get the maximum number of StackObjects in the interpreter thread stack (size*8 represents the final memory size occupied
3434 /// </summary>
3535 /// <returns></returns>
3636 public static int GetInterpreterThreadObjectStackSize ( )
@@ -39,17 +39,17 @@ public static int GetInterpreterThreadObjectStackSize()
3939 }
4040
4141 /// <summary>
42- /// 设置解释器线程栈的最大StackObject个数 (size*8 为最终占用的内存大小 )
42+ /// set the maximum number of StackObjects for the interpreter thread stack (size*8 represents the final memory size occupied )
4343 /// </summary>
4444 /// <param name="size"></param>
4545 public static void SetInterpreterThreadObjectStackSize ( int size )
4646 {
4747 SetRuntimeOption ( RuntimeOptionId . InterpreterThreadObjectStackSize , size ) ;
4848 }
49-
49+
5050
5151 /// <summary>
52- /// 获取解释器线程函数帧数量 (sizeof(InterpreterFrame)*size 为最终占用的内存大小 )
52+ /// get the number of interpreter thread function frames (sizeof(InterpreterFrame)*size represents the final memory size occupied )
5353 /// </summary>
5454 /// <returns></returns>
5555 public static int GetInterpreterThreadFrameStackSize ( )
@@ -58,7 +58,7 @@ public static int GetInterpreterThreadFrameStackSize()
5858 }
5959
6060 /// <summary>
61- /// 设置解释器线程函数帧数量 (sizeof(InterpreterFrame)*size 为最终占用的内存大小 )
61+ /// set the number of interpreter thread function frames (sizeof(InterpreterFrame)*size represents the final memory size occupied )
6262 /// </summary>
6363 /// <param name="size"></param>
6464 public static void SetInterpreterThreadFrameStackSize ( int size )
@@ -71,6 +71,11 @@ public static void SetInterpreterThreadFrameStackSize(int size)
7171
7272 private static readonly Dictionary < RuntimeOptionId , int > s_runtimeOptions = new Dictionary < RuntimeOptionId , int > ( ) ;
7373
74+ /// <summary>
75+ /// set runtime option value
76+ /// </summary>
77+ /// <param name="optionId"></param>
78+ /// <param name="value"></param>
7479 public static void SetRuntimeOption ( RuntimeOptionId optionId , int value )
7580 {
7681 s_runtimeOptions [ optionId ] = value ;
@@ -80,6 +85,11 @@ public static void SetRuntimeOption(RuntimeOptionId optionId, int value)
8085 public static extern void SetRuntimeOption ( RuntimeOptionId optionId , int value ) ;
8186#endif
8287
88+ /// <summary>
89+ /// get runtime option value
90+ /// </summary>
91+ /// <param name="optionId"></param>
92+ /// <returns></returns>
8393#if UNITY_EDITOR
8494 public static int GetRuntimeOption ( RuntimeOptionId optionId )
8595 {
0 commit comments