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
//! `FieldMarshal` table loader implementation.
//!
//! This module provides the [`crate::metadata::tables::fieldmarshal::loader::FieldMarshalLoader`] responsible for loading and processing
//! `FieldMarshal` metadata table entries. The `FieldMarshal` table specifies how fields and
//! parameters should be marshalled when crossing managed/unmanaged boundaries.
//!
//! # Purpose
//! The `FieldMarshal` table is essential for interop scenarios, defining:
//! - **P/Invoke marshalling**: How parameters are converted for native calls
//! - **COM interop**: Field and parameter marshalling for COM objects
//! - **Custom marshalling**: User-defined marshalling behavior
//! - **Array marshalling**: Specific handling for array types
//! - **String marshalling**: Character encoding and memory management
//!
//! # Table Dependencies
//! - **Field table**: Required for field marshalling information
//! - **Param table**: Required for parameter marshalling information
//!
//! # ECMA-335 Reference
//! See ECMA-335, Partition II, §22.17 for the `FieldMarshal` table specification.
use crate::;
/// Loader implementation for the `FieldMarshal` metadata table.
///
/// This loader processes `FieldMarshal` table entries which specify marshalling
/// behavior for fields and parameters when crossing managed/unmanaged boundaries.
/// Marshalling information is critical for proper interop with native code and
/// COM components.
///
/// # Error Conditions
/// Loading may fail if:
/// - Coded index references cannot be resolved
/// - Blob signature parsing encounters invalid data
/// - Memory allocation fails during processing
/// - Concurrent access conflicts occur
/// - Invalid marshalling specifications are encountered
///
/// # ECMA-335 Reference
/// See ECMA-335, Partition II, §22.17 for complete `FieldMarshal` table specification.
pub ;