SplitScript reference / PeDebugId / fromParts

PeDebugId.fromParts

Function

PeDebugId.fromParts(guid: [u8; 16], age: u32) -> PeDebugId

Constructs an identity from CodeView-order GUID bytes and its PDB age.

Compare the complete identity when recognizing a build: a matching GUID with a different age is a different PDB identity.

Parameters

  • guid: The GUID's 16 bytes in their stored order, without byte swapping.
  • age: The PDB revision number.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Construct an expected build identity

let expected = PeDebugId.fromParts(
    [0, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255],
    1,
)