forked from tModLoader/tModLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MonoMod.Utils.xml
1435 lines (1434 loc) · 73.6 KB
/
MonoMod.Utils.xml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<doc>
<assembly>
<name>MonoMod.Utils</name>
</assembly>
<members>
<member name="T:MonoMod.Cil.ILContext">
<summary>
An IL manipulation "context" with various helpers and direct access to the MethodBody.
</summary>
</member>
<member name="T:MonoMod.Cil.ILContext.Manipulator">
<summary>
The manipulator callback, accepted by the Invoke method.
</summary>
<param name="il"></param>
</member>
<member name="P:MonoMod.Cil.ILContext.Method">
<summary>
The manipulated method.
</summary>
</member>
<member name="P:MonoMod.Cil.ILContext.IL">
<summary>
The manipulated method's IL processor.
</summary>
</member>
<member name="P:MonoMod.Cil.ILContext.Body">
<summary>
The manipulated method body.
</summary>
</member>
<member name="P:MonoMod.Cil.ILContext.Module">
<summary>
The manipulated method's module.
</summary>
</member>
<member name="P:MonoMod.Cil.ILContext.Instrs">
<summary>
The manipulated method instructions.
</summary>
</member>
<member name="P:MonoMod.Cil.ILContext.Labels">
<summary>
A readonly list of all defined labels.
</summary>
</member>
<member name="P:MonoMod.Cil.ILContext.IsReadOnly">
<summary>
Has the context been made read-only? No further method access is possible, but the context has not yet been disposed.
</summary>
</member>
<member name="E:MonoMod.Cil.ILContext.OnDispose">
<summary>
Events which run when the context will be disposed.
</summary>
</member>
<member name="F:MonoMod.Cil.ILContext.ReferenceBag">
<summary>
The current reference bag. Used for methods such as EmitReference and EmitDelegate.
</summary>
</member>
<member name="M:MonoMod.Cil.ILContext.Invoke(MonoMod.Cil.ILContext.Manipulator)">
<summary>
Invoke a given manipulator callback.
</summary>
<param name="manip">The manipulator to run in this context.</param>
</member>
<member name="M:MonoMod.Cil.ILContext.MakeReadOnly">
<summary>
Mark this ILContext as read-only and prevent this context from further accessing the originally passed method.
</summary>
<remarks>
If the method is altered prior to calling MakeReadOnly or afterwards by accessing the method directly, the results are undefined.
</remarks>
</member>
<member name="M:MonoMod.Cil.ILContext.Import(System.Reflection.FieldInfo)">
<summary>
See <see cref="M:Mono.Cecil.ModuleDefinition.ImportReference(System.Reflection.FieldInfo)"/>
</summary>
</member>
<member name="M:MonoMod.Cil.ILContext.Import(System.Reflection.MethodBase)">
<summary>
See <see cref="M:Mono.Cecil.ModuleDefinition.ImportReference(System.Reflection.MethodBase)"/>
</summary>
</member>
<member name="M:MonoMod.Cil.ILContext.Import(System.Type)">
<summary>
See <see cref="M:Mono.Cecil.ModuleDefinition.ImportReference(System.Type)"/>
</summary>
</member>
<member name="M:MonoMod.Cil.ILContext.DefineLabel">
<summary>
Define a new label to be marked with a cursor.
</summary>
<returns>A label without a target instruction.</returns>
</member>
<member name="M:MonoMod.Cil.ILContext.DefineLabel(Mono.Cecil.Cil.Instruction)">
<summary>
Define a new label pointing at a given instruction.
</summary>
<param name="target">The instruction the label will point at.</param>
<returns>A label pointing at the given instruction.</returns>
</member>
<member name="M:MonoMod.Cil.ILContext.IndexOf(Mono.Cecil.Cil.Instruction)">
<summary>
Determine the index of a given instruction.
</summary>
<param name="instr">The instruction to get the index of.</param>
<returns>The instruction index, or the end of the method body if it hasn't been found.</returns>
</member>
<member name="M:MonoMod.Cil.ILContext.GetIncomingLabels(Mono.Cecil.Cil.Instruction)">
<summary>
Obtain all labels pointing at the given instruction.
</summary>
<param name="instr">The instruction to get all labels for.</param>
<returns>All labels targeting the given instruction.</returns>
</member>
<member name="M:MonoMod.Cil.ILContext.AddReference``1(``0)">
<summary>
Bind an arbitary object to an ILContext for static retrieval.
</summary>
<typeparam name="T">The type of the object. The combination of typeparam and id provides the unique static reference.</typeparam>
<param name="t">The object to store.</param>
<returns>The id to use in combination with the typeparam for object retrieval.</returns>
</member>
<member name="M:MonoMod.Cil.ILContext.Dispose">
<summary>
Dispose this context, making it read-only and invoking all OnDispose event listeners.
</summary>
</member>
<member name="M:MonoMod.Cil.ILContext.ToString">
<summary>
Obtain a string representation of this context (method ID and body).
</summary>
<returns>A string representation of this context.</returns>
</member>
<member name="T:MonoMod.Cil.MoveType">
<summary>
Specifies where a ILCursor should be positioned in relation to the target of a search function
</summary>
</member>
<member name="F:MonoMod.Cil.MoveType.Before">
<summary>
Move the cursor before the first instruction in the match
</summary>
</member>
<member name="F:MonoMod.Cil.MoveType.AfterLabel">
<summary>
Equivalent to Before with `cursor.MoveAfterLabels()` causing emitted instructions to become the target of incoming labels
</summary>
</member>
<member name="F:MonoMod.Cil.MoveType.After">
<summary>
Move the cursor after the last instruction in the match
</summary>
</member>
<member name="T:MonoMod.Cil.SearchTarget">
<summary>
Indicates whether the position of a ILCursor is the result of a search function and
if the next search should ignore the instruction preceeding or following this cursor.
<para />
SearchTarget.Next is the result of searching with MoveType.Before, and SearchTarget.Prev from MoveType.After
</summary>
</member>
<member name="F:MonoMod.Cil.SearchTarget.Next">
<summary>
A foward searching function cannot match the Next instruction and must move the cursor forward
</summary>
</member>
<member name="F:MonoMod.Cil.SearchTarget.Prev">
<summary>
A reverse searching function cannot match the Next instruction and must move the cursor backward
</summary>
</member>
<member name="T:MonoMod.Cil.ILCursor">
<summary>
A cursor used to manipulate a method body in an ILContext.
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Context">
<summary>
The context to which this cursor belongs to.
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Next">
<summary>
The instruction immediately following the cursor position or null if the cursor is at the end of the instruction list.
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Prev">
<summary>
The instruction immediately preceding the cursor position or null if the cursor is at the start of the instruction list.
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Previous">
<summary>
The instruction immediately preceding the cursor position or null if the cursor is at the start of the instruction list.
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Index">
<summary>
The index of the instruction immediately following the cursor position. Range: 0 to <c>Instrs.Count</c>
Setter accepts negative indexing by adding <c>Instrs.Count</c> to the operand
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.SearchTarget">
<summary>
Indicates whether the position of a MMILCursor is the result of a search function and
if the next search should ignore the instruction preceeding or following this cursor.
See <see cref="T:MonoMod.Cil.SearchTarget"/>
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.IncomingLabels">
<summary>
Enumerates all labels which point to the current instruction (<c>label.Target == Next</c>)
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Method">
<summary>
See <see cref="P:MonoMod.Cil.ILContext.Method"/>
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.IL">
<summary>
See <see cref="P:MonoMod.Cil.ILContext.IL"/>
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Body">
<summary>
See <see cref="P:MonoMod.Cil.ILContext.Body"/>
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Module">
<summary>
See <see cref="P:MonoMod.Cil.ILContext.Module"/>
</summary>
</member>
<member name="P:MonoMod.Cil.ILCursor.Instrs">
<summary>
See <see cref="P:MonoMod.Cil.ILContext.Instrs"/>
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor.Clone">
<summary>
Create a clone of this cursor.
</summary>
<returns>The cloned cursor.</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.IsBefore(Mono.Cecil.Cil.Instruction)">
<summary>
Is this cursor before the given instruction?
</summary>
<param name="instr">The instruction to check.</param>
<returns>True if this cursor is before the given instruction, false otherwise.</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.IsAfter(Mono.Cecil.Cil.Instruction)">
<summary>
Is this cursor after the given instruction?
</summary>
<param name="instr">The instruction to check.</param>
<returns>True if this cursor is after the given instruction, false otherwise.</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.ToString">
<summary>
Obtain a string representation of this cursor (method ID, index, search target, surrounding instructions).
</summary>
<returns>A string representation of this cursor.</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Goto(Mono.Cecil.Cil.Instruction,MonoMod.Cil.MoveType,System.Boolean)">
<summary>
Move the cursor to a target instruction. All other movements go through this.
</summary>
<param name="insn">The target instruction</param>
<param name="moveType">Where to move in relation to the target instruction and incoming labels (branches)</param>
<param name="setTarget">Whether to set the `SearchTarget` and skip the target instruction with the next search function</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.MoveAfterLabels">
<summary>
Move the cursor after incoming labels (branches). If an instruction is emitted, all labels which currently point to Next, will point to the newly emitted instruction.
</summary>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.MoveBeforeLabels">
<summary>
Move the cursor before incoming labels (branches). This is the default behaviour. Emitted instructions will not cause labels to change targets.
</summary>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Goto(System.Int32,MonoMod.Cil.MoveType,System.Boolean)">
<summary>
Move the cursor to a target index. Supports negative indexing. See <see cref="M:MonoMod.Cil.ILCursor.Goto(Mono.Cecil.Cil.Instruction,MonoMod.Cil.MoveType,System.Boolean)"/>
</summary>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.GotoLabel(MonoMod.Cil.ILLabel,MonoMod.Cil.MoveType,System.Boolean)">
<summary>
Overload for <c>Goto(label.Target)</c>. <paramref name="moveType"/> defaults to MoveType.AfterLabel
</summary>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.GotoNext(MonoMod.Cil.MoveType,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Search forward and moves the cursor to the next sequence of instructions matching the corresponding predicates. See also <seealso cref="M:MonoMod.Cil.ILCursor.TryGotoNext(MonoMod.Cil.MoveType,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])"/>
</summary>
<returns>this</returns>
<exception cref="T:System.Collections.Generic.KeyNotFoundException">If no match is found</exception>
</member>
<member name="M:MonoMod.Cil.ILCursor.TryGotoNext(MonoMod.Cil.MoveType,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Search forward and moves the cursor to the next sequence of instructions matching the corresponding predicates.
</summary>
<returns>True if a match was found</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.GotoPrev(MonoMod.Cil.MoveType,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Search backward and moves the cursor to the next sequence of instructions matching the corresponding predicates. See also <seealso cref="M:MonoMod.Cil.ILCursor.TryGotoPrev(MonoMod.Cil.MoveType,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])"/>
</summary>
<returns>this</returns>
<exception cref="T:System.Collections.Generic.KeyNotFoundException">If no match is found</exception>
</member>
<member name="M:MonoMod.Cil.ILCursor.TryGotoPrev(MonoMod.Cil.MoveType,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Search backward and moves the cursor to the next sequence of instructions matching the corresponding predicates.
</summary>
<returns>True if a match was found</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.FindNext(MonoMod.Cil.ILCursor[]@,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Find the next occurences of a series of instructions matching the given set of predicates with gaps permitted.
</summary>
<param name="cursors">An array of cursors corresponding to each found instruction (MoveType.Before)</param>
<exception cref="T:System.Collections.Generic.KeyNotFoundException">If no match is found</exception>
</member>
<member name="M:MonoMod.Cil.ILCursor.TryFindNext(MonoMod.Cil.ILCursor[]@,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Find the next occurences of a series of instructions matching the given set of predicates with gaps permitted.
</summary>
<param name="cursors">An array of cursors corresponding to each found instruction (MoveType.Before)</param>
<returns>True if a match was found</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.FindPrev(MonoMod.Cil.ILCursor[]@,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Search backwards for occurences of a series of instructions matching the given set of predicates with gaps permitted.
</summary>
<param name="cursors">An array of cursors corresponding to each found instruction (MoveType.Before)</param>
<exception cref="T:System.Collections.Generic.KeyNotFoundException">If no match is found</exception>
</member>
<member name="M:MonoMod.Cil.ILCursor.TryFindPrev(MonoMod.Cil.ILCursor[]@,System.Func{Mono.Cecil.Cil.Instruction,System.Boolean}[])">
<summary>
Search backwards for occurences of a series of instructions matching the given set of predicates with gaps permitted.
</summary>
<param name="cursors">An array of cursors corresponding to each found instruction (MoveType.Before)</param>
<returns>True if a match was found</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.MarkLabel(MonoMod.Cil.ILLabel)">
<summary>
Set the target of a label to the current position (<c>label.Target = Next</c>) and moves after it.
</summary>
<param name="label">The label to mark</param>
</member>
<member name="M:MonoMod.Cil.ILCursor.MarkLabel">
<summary>
Create a new label targetting the current position (<c>label.Target = Next</c>) and moves after it.
</summary>
<returns>The newly created label</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.DefineLabel">
<summary>
Create a new label for use with <see cref="M:MonoMod.Cil.ILCursor.MarkLabel(MonoMod.Cil.ILLabel)"/>
</summary>
<returns>A new label with no target</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Remove">
<summary>
Remove the Next instruction
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor.RemoveRange(System.Int32)">
<summary>
Remove several instructions
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor._Retarget(Mono.Cecil.Cil.Instruction,MonoMod.Cil.MoveType)">
<summary>
Move the cursor and all labels the cursor is positioned after to a target instruction
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.ParameterDefinition)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="parameter">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.Cil.VariableDefinition)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="variable">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.Cil.Instruction[])">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="targets">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.Cil.Instruction)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="target">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Double)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Single)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Int64)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.SByte)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Byte)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.String)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.FieldReference)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="field">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.CallSite)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="site">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.TypeReference)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="type">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Int32)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="value">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,Mono.Cecil.MethodReference)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="method">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Reflection.FieldInfo)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="field">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Reflection.MethodBase)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="method">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Type)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="type">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit(Mono.Cecil.Cil.OpCode,System.Object)">
<summary>
Emit a new instruction at this cursor's current position.
</summary>
<param name="opcode">The instruction opcode.</param>
<param name="operand">The instruction operand.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.Emit``1(Mono.Cecil.Cil.OpCode,System.String)">
<summary>
Emit a new instruction at this cursor's current position, accessing a given member.
</summary>
<typeparam name="T">The type in which the member is defined.</typeparam>
<param name="opcode">The instruction opcode.</param>
<param name="memberName">The accessed member name.</param>
<returns>this</returns>
</member>
<member name="M:MonoMod.Cil.ILCursor.AddReference``1(``0)">
<summary>
Bind an arbitary object to an ILContext for static retrieval. See <see cref="M:MonoMod.Cil.ILContext.AddReference``1(``0)"/>
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor.EmitGetReference``1(System.Int32)">
<summary>
Emit the IL to retrieve a stored reference of type <typeparamref name="T"/> with the given <paramref name="id"/> and place it on the stack.
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor.EmitReference``1(``0)">
<summary>
Store an object in the reference store, and emit the IL to retrieve it and place it on the stack.
</summary>
</member>
<member name="M:MonoMod.Cil.ILCursor.EmitDelegate``1(``0)">
<summary>
Emit the IL to invoke a delegate as if it were a method. Stack behaviour matches OpCodes.Call
</summary>
</member>
<member name="T:MonoMod.Cil.ILLabel">
<summary>
A label to be used in ILContexts.
</summary>
</member>
<member name="F:MonoMod.Cil.ILLabel.Target">
<summary>
The target instruction this label points at.
</summary>
</member>
<member name="P:MonoMod.Cil.ILLabel.Branches">
<summary>
All instructions using this label.
</summary>
</member>
<member name="T:MonoMod.Cil.IILReferenceBag">
<summary>
An IL inline reference bag used for ILContexts.
</summary>
</member>
<member name="M:MonoMod.Cil.IILReferenceBag.Get``1(System.Int32)">
<summary>
Get the object for the given ID.
</summary>
<typeparam name="T">The object type.</typeparam>
<param name="id">The object ID.</param>
<returns>The stored object.</returns>
</member>
<member name="M:MonoMod.Cil.IILReferenceBag.GetGetter``1">
<summary>
Get a MethodInfo for the getter.
</summary>
<typeparam name="T">The object type.</typeparam>
<returns>The getter method.</returns>
</member>
<member name="M:MonoMod.Cil.IILReferenceBag.Store``1(``0)">
<summary>
Store a new object.
</summary>
<typeparam name="T">The object type.</typeparam>
<param name="t">The object to be stored.</param>
<returns>An ID to be used for all further operations.</returns>
</member>
<member name="M:MonoMod.Cil.IILReferenceBag.Clear``1(System.Int32)">
<summary>
Remove the object with the given ID from the bag, essentially clearing the ID's slot.
</summary>
<typeparam name="T">The object type.</typeparam>
<param name="id">The object ID.</param>
</member>
<member name="M:MonoMod.Cil.IILReferenceBag.GetDelegateInvoker``1">
<summary>
Get a MethodInfo invoking a delegate of the given type, with the delegate at the top of the stack. Used by <see cref="M:MonoMod.Cil.ILCursor.EmitDelegate``1(``0)"/>.
</summary>
<typeparam name="T">The delegate type.</typeparam>
<returns>A MethodInfo invoking a delegate of the given type.</returns>
</member>
<member name="T:MonoMod.Cil.NopILReferenceBag">
<summary>
The default IL reference bag. Throws NotSupportedException for every operation.
</summary>
</member>
<member name="T:MonoMod.Cil.RuntimeILReferenceBag">
<summary>
An IL reference bag implementation to be used for runtime-generated methods.
</summary>
</member>
<member name="F:MonoMod.Utils.DynDll.Mappings">
<summary>
Allows you to remap library paths / names and specify loading flags. Useful for cross-platform compatibility. Applies only to DynDll.
</summary>
</member>
<member name="M:MonoMod.Utils.DynDll.OpenLibrary(System.String,System.Boolean,System.Nullable{System.Int32})">
<summary>
Open a given library and get its handle.
</summary>
<param name="name">The library name.</param>
<param name="skipMapping">Whether to skip using the mapping or not.</param>
<param name="flags">Any optional platform-specific flags.</param>
<returns>The library handle.</returns>
</member>
<member name="M:MonoMod.Utils.DynDll.TryOpenLibrary(System.String,System.IntPtr@,System.Boolean,System.Nullable{System.Int32})">
<summary>
Try to open a given library and get its handle.
</summary>
<param name="name">The library name.</param>
<param name="lib">The library handle, or null if it failed loading.</param>
<param name="skipMapping">Whether to skip using the mapping or not.</param>
<param name="flags">Any optional platform-specific flags.</param>
<returns>True if the handle was obtained, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.DynDll.CloseLibrary(System.IntPtr)">
<summary>
Release a library handle obtained via OpenLibrary. Don't release the result of OpenLibrary(null)!
</summary>
<param name="lib">The library handle.</param>
</member>
<member name="M:MonoMod.Utils.DynDll.GetFunction(System.IntPtr,System.String)">
<summary>
Get a function pointer for a function in the given library.
</summary>
<param name="lib">The library handle.</param>
<param name="name">The function name.</param>
<returns>The function pointer.</returns>
</member>
<member name="M:MonoMod.Utils.DynDll.TryGetFunction(System.IntPtr,System.String,System.IntPtr@)">
<summary>
Get a function pointer for a function in the given library.
</summary>
<param name="lib">The library handle.</param>
<param name="name">The function name.</param>
<param name="ptr">The function pointer, or null if it wasn't found.</param>
<returns>True if the function pointer was obtained, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.DynDll.AsDelegate``1(System.IntPtr)">
<summary>
Extension method wrapping Marshal.GetDelegateForFunctionPointer
</summary>
</member>
<member name="M:MonoMod.Utils.DynDll.ResolveDynDllImports(System.Type,System.Collections.Generic.Dictionary{System.String,MonoMod.Utils.DynDllMapping})">
<summary>
Fill all static delegate fields with the DynDllImport attribute.
Call this early on in the static constructor.
</summary>
<param name="type">The type containing the DynDllImport delegate fields.</param>
<param name="mappings">Any optional mappings similar to the static mappings.</param>
</member>
<member name="M:MonoMod.Utils.DynDll.ResolveDynDllImports(System.Object,System.Collections.Generic.Dictionary{System.String,MonoMod.Utils.DynDllMapping})">
<summary>
Fill all instance delegate fields with the DynDllImport attribute.
Call this early on in the constructor.
</summary>
<param name="instance">An instance of a type containing the DynDllImport delegate fields.</param>
<param name="mappings">Any optional mappings similar to the static mappings.</param>
</member>
<member name="T:MonoMod.Utils.DynDllImportAttribute">
<summary>
Similar to DllImport, but requires you to run typeof(DeclaringType).ResolveDynDllImports();
</summary>
</member>
<member name="F:MonoMod.Utils.DynDllMapping.ResolveAs">
<summary>
The name as which the library will be resolved as. Useful to remap libraries or to provide full paths.
</summary>
</member>
<member name="F:MonoMod.Utils.DynDllMapping.Flags">
<summary>
Platform-dependant loading flags.
</summary>
</member>
<member name="T:MonoMod.Utils.Extensions">
<summary>
Collection of extensions used by MonoMod and other projects.
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.ToHexadecimalString(System.Byte[])">
<summary>
Create a hexadecimal string for the given bytes.
</summary>
<param name="data">The input bytes.</param>
<returns>The output hexadecimal string.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.InvokePassing``1(System.MulticastDelegate,``0,System.Object[])">
<summary>
Invokes all delegates in the invocation list, passing on the result to the next.
</summary>
<typeparam name="T">Type of the result.</typeparam>
<param name="md">The multicast delegate.</param>
<param name="val">The initial value and first parameter.</param>
<param name="args">Any other arguments that may be passed.</param>
<returns>The result of all delegates.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.InvokeWhileTrue(System.MulticastDelegate,System.Object[])">
<summary>
Invokes all delegates in the invocation list, as long as the previously invoked delegate returns true.
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.InvokeWhileFalse(System.MulticastDelegate,System.Object[])">
<summary>
Invokes all delegates in the invocation list, as long as the previously invoked delegate returns false.
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.InvokeWhileNull``1(System.MulticastDelegate,System.Object[])">
<summary>
Invokes all delegates in the invocation list, as long as the previously invoked delegate returns null.
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.SpacedPascalCase(System.String)">
<summary>
Split PascalCase words to become Pascal Case instead.
</summary>
<param name="input">PascalCaseString</param>
<returns>Pascal Case String</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.ReadNullTerminatedString(System.IO.BinaryReader)">
<summary>
Read the string from the BinaryReader BinaryWriter in a C-friendly format.
</summary>
<param name="stream">The input which the method reads from.</param>
<returns>The output string.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.WriteNullTerminatedString(System.IO.BinaryWriter,System.String)">
<summary>
Write the string to the BinaryWriter in a C-friendly format.
</summary>
<param name="stream">The output which the method writes to.</param>
<param name="text">The input string.</param>
</member>
<member name="M:MonoMod.Utils.Extensions.CastDelegate``1(System.Delegate)">
<summary>
Cast a delegate from one type to another. Compatible with delegates holding an invocation list (combined delegates).
</summary>
<param name="source">The input delegate.</param>
<returns>The output delegate.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.CastDelegate(System.Delegate,System.Type)">
<summary>
Cast a delegate from one type to another. Compatible with delegates holding an invocation list (combined delegates).
</summary>
<param name="source">The input delegate.</param>
<param name="type">The wanted output delegate type.</param>
<returns>The output delegate.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.LogDetailed(System.Exception,System.String)">
<summary>
Print the exception to the console, including extended loading / reflection data useful for mods.
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.GetStateMachineTarget(System.Reflection.MethodInfo)">
<summary>
Get the method of interest for a given state machine method.
</summary>
<param name="method">The method creating the state machine.</param>
<returns>The "main" method in the state machine.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.SafeResolve(Mono.Cecil.TypeReference)">
<summary>
Safely resolve a reference, silently discarding any exceptions.
</summary>
<param name="r">The reference to resolve.</param>
<returns>The resolved definition or null.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.SafeResolve(Mono.Cecil.FieldReference)">
<summary>
Safely resolve a reference, silently discarding any exceptions.
</summary>
<param name="r">The reference to resolve.</param>
<returns>The resolved definition or null.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.SafeResolve(Mono.Cecil.MethodReference)">
<summary>
Safely resolve a reference, silently discarding any exceptions.
</summary>
<param name="r">The reference to resolve.</param>
<returns>The resolved definition or null.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.SafeResolve(Mono.Cecil.PropertyReference)">
<summary>
Safely resolve a reference, silently discarding any exceptions.
</summary>
<param name="r">The reference to resolve.</param>
<returns>The resolved definition or null.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.GetCustomAttribute(Mono.Cecil.ICustomAttributeProvider,System.String)">
<summary>
Get a certain custom attribute from an attribute provider.
</summary>
<param name="cap">The attribute provider.</param>
<param name="attribute">The custom attribute name.</param>
<returns>The first matching custom attribute, or null if no matching attribute has been found.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.HasCustomAttribute(Mono.Cecil.ICustomAttributeProvider,System.String)">
<summary>
Determine if an attribute provider has got a specific custom attribute.
</summary>
<param name="cap">The attribute provider.</param>
<param name="attribute">The custom attribute name.</param>
<returns>true if the attribute provider contains the given custom attribute, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.GetInt(Mono.Cecil.Cil.Instruction)">
<summary>
Get the integer value pushed onto the stack with this instruction.
</summary>
<param name="instr">The instruction to get the pushed integer value for.</param>
<returns>The pushed integer value.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.GetIntOrNull(Mono.Cecil.Cil.Instruction)">
<summary>
Get the integer value pushed onto the stack with this instruction.
</summary>
<param name="instr">The instruction to get the pushed integer value for.</param>
<returns>The pushed integer value or null.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.IsBaseMethodCall(Mono.Cecil.Cil.MethodBody,Mono.Cecil.MethodReference)">
<summary>
Determine if the method call is a base method call.
</summary>
<param name="body">The caller method body.</param>
<param name="called">The called method.</param>
<returns>True if the called method is a base method of the caller method, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.IsCallvirt(Mono.Cecil.MethodReference)">
<summary>
Determine if the given method can be preferably called using callvirt.
</summary>
<param name="method">The called method.</param>
<returns>True if the called method can be called using callvirt, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.IsStruct(Mono.Cecil.TypeReference)">
<summary>
Determine if the given type is a struct (also known as "value type") or struct-alike (f.e. primitive).
</summary>
<param name="type">The type to check.</param>
<returns>True if the type is a struct, primitive or similar, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.ToLongOp(Mono.Cecil.Cil.OpCode)">
<summary>
Get the long form opcode for any short form opcode.
</summary>
<param name="op">The short form opcode.</param>
<returns>The long form opcode.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.ToShortOp(Mono.Cecil.Cil.OpCode)">
<summary>
Get the short form opcode for any long form opcode.
</summary>
<param name="op">The long form opcode.</param>
<returns>The short form opcode.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.RecalculateILOffsets(Mono.Cecil.MethodDefinition)">
<summary>
Calculate updated instruction offsets. Required for certain manual fixes.
</summary>
<param name="method">The method to recalculate the IL instruction offsets for.</param>
</member>
<member name="M:MonoMod.Utils.Extensions.FixShortLongOps(Mono.Cecil.MethodDefinition)">
<summary>
Fix (and optimize) any instructions which should use the long / short form opcodes instead.
</summary>
<param name="method">The method to apply the fixes to.</param>
</member>
<member name="M:MonoMod.Utils.Extensions.Is(System.Reflection.MemberInfo,Mono.Cecil.MemberReference)">
<summary>
Check if the signatures of a given System.Reflection and Mono.Cecil member reference match.
</summary>
<param name="minfo">The System.Reflection member reference.</param>
<param name="mref">The Mono.Cecil member reference.</param>
<returns>True if both references share the same signature, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.Is(Mono.Cecil.MemberReference,System.Reflection.MemberInfo)">
<summary>
Check if the signatures of a given System.Reflection and Mono.Cecil member reference match.
</summary>
<param name="mref">The Mono.Cecil member reference.</param>
<param name="minfo">The System.Reflection member reference.</param>
<returns>True if both references share the same signature, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.AddRange``1(Mono.Collections.Generic.Collection{``0},System.Collections.Generic.IEnumerable{``0})">
<summary>
See <see cref="M:System.Collections.Generic.List`1.AddRange(System.Collections.Generic.IEnumerable{`0})"/>
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.AddRange(System.Collections.IDictionary,System.Collections.IDictionary)">
<summary>
See <see cref="M:System.Collections.Generic.List`1.AddRange(System.Collections.Generic.IEnumerable{`0})"/>
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.AddRange``2(System.Collections.Generic.IDictionary{``0,``1},System.Collections.Generic.IDictionary{``0,``1})">
<summary>
See <see cref="M:System.Collections.Generic.List`1.AddRange(System.Collections.Generic.IEnumerable{`0})"/>
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.AddRange``2(System.Collections.Generic.Dictionary{``0,``1},System.Collections.Generic.Dictionary{``0,``1})">
<summary>
See <see cref="M:System.Collections.Generic.List`1.AddRange(System.Collections.Generic.IEnumerable{`0})"/>
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.InsertRange``1(Mono.Collections.Generic.Collection{``0},System.Int32,System.Collections.Generic.IEnumerable{``0})">
<summary>
See <see cref="M:System.Collections.Generic.List`1.InsertRange(System.Int32,System.Collections.Generic.IEnumerable{`0})"/>
</summary>
</member>
<member name="M:MonoMod.Utils.Extensions.IsCompatible(System.Type,System.Type)">
<summary>
Determine if two types are compatible with each other (f.e. object with string, or enums with their underlying integer type).
</summary>
<param name="type">The first type.</param>
<param name="other">The second type.</param>
<returns>True if both types are compatible with each other, false otherwise.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.CreateDelegate``1(System.Reflection.MethodBase)">
<summary>
Creates a delegate of the specified type from this method.
</summary>
<param name="method">The method to create the delegate from.</param>
<typeparam name="T">The type of the delegate to create.</typeparam>
<returns>The delegate for this method.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.CreateDelegate``1(System.Reflection.MethodBase,System.Object)">
<summary>
Creates a delegate of the specified type with the specified target from this method.
</summary>
<param name="method">The method to create the delegate from.</param>
<typeparam name="T">The type of the delegate to create.</typeparam>
<param name="target">The object targeted by the delegate.</param>
<returns>The delegate for this method.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.CreateDelegate(System.Reflection.MethodBase,System.Type)">
<summary>
Creates a delegate of the specified type from this method.
</summary>
<param name="method">The method to create the delegate from.</param>
<param name="delegateType">The type of the delegate to create.</param>
<returns>The delegate for this method.</returns>
</member>
<member name="M:MonoMod.Utils.Extensions.CreateDelegate(System.Reflection.MethodBase,System.Type,System.Object)">
<summary>
Creates a delegate of the specified type with the specified target from this method.
</summary>
<param name="method">The method to create the delegate from.</param>
<param name="delegateType">The type of the delegate to create.</param>
<param name="target">The object targeted by the delegate.</param>