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

Aliased Type§

pub struct EncMap {
    pub rid: u32,
    pub token: Token,
    pub offset: usize,
    pub original_token: Token,
}

Fields§

§rid: u32

Row identifier within the EncMap table.

This 1-based index uniquely identifies this token mapping within the table.

§token: Token

Metadata token for this EncMap entry.

Constructed as 0x1F000000 | rid, providing a unique identifier for this mapping entry within the metadata system.

§offset: usize

Byte offset of this row within the EncMap table data.

Used for debugging and low-level table operations.

§original_token: Token

Original 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.