Type Alias EncMap
pub type EncMap = EncMapRaw;Expand description
Edit-and-Continue token mapping entry for debugging session operations
Type alias to crate::metadata::tables::encmap::EncMapRaw since the EncMap table contains only primitive values
that don’t require heap resolution. All data in the raw structure is immediately usable.
The EncMap table maps original metadata tokens to their updated versions after Edit-and-Continue
operations, enabling debuggers to maintain proper references during active debugging sessions.
§Data Model
Unlike other metadata tables that reference string or blob heaps, EncMap contains
only integer values (tokens), making the “raw” and “owned” representations identical.
§Reference
- ECMA-335 II.22.13 -
EncMaptable specification (Table ID = 0x1F)
Aliased Type§
pub struct EncMap {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub original_token: Token,
}Fields§
§rid: u32Row identifier within the EncMap table.
This 1-based index uniquely identifies this token mapping within the table.
token: TokenMetadata token for this EncMap entry.
Constructed as 0x1F000000 | rid, providing a unique identifier
for this mapping entry within the metadata system.
offset: usizeByte offset of this row within the EncMap table data.
Used for debugging and low-level table operations.
original_token: TokenOriginal metadata token before Edit-and-Continue operation.
This token represents the metadata element before any editing occurred. The debugger uses this value to correlate with updated tokens after editing.