# One-shot parity helper: prints CRC-16/IBM signatures for sample names using # the .NET reference's `MxReferenceHandle.ComputeNameSignature`. Used to # cross-validate the Rust codec port (`mxaccess-codec/src/reference_handle.rs`). $dll = 'C:\Users\dohertj2\Desktop\mxaccess\src\MxNativeCodec\bin\Debug\net10.0\MxNativeCodec.dll' if (-not (Test-Path $dll)) { Write-Error "MxNativeCodec.dll not found at $dll. Run: dotnet build src\MxNativeCodec\MxNativeCodec.csproj" exit 1 } Add-Type -Path $dll foreach ($name in @('TestObject','TestInt','$Object','a','TestChildObject','testobject','TESTOBJECT')) { $sig = [MxNativeCodec.MxReferenceHandle]::ComputeNameSignature($name) Write-Output ("{0,-20} = 0x{1:X4}" -f $name, $sig) }