refactor(managed): group capability workflows and verification (#926)

This commit is contained in:
ysopwnable
2026-10-07 19:22:04 +08:00
committed by GitHub
parent 2ccc86cd13
commit 28713f9b4d
75 changed files with 217 additions and 177 deletions
+36
View File
@@ -0,0 +1,36 @@
export interface ManagedPeFixtureMethod {
readonly body?: Buffer;
readonly flags?: number;
readonly implFlags?: number;
readonly name: string;
}
export interface ManagedPeFixtureOptions {
readonly cliFlags?: number;
readonly corruptMetadataSignature?: boolean;
readonly fieldName?: string;
readonly ilBody?: Buffer;
readonly machine?: number;
readonly metadataValidMaskExtra?: bigint;
readonly methodImplFlags?: number;
readonly methodName?: string;
readonly methods?: readonly ManagedPeFixtureMethod[];
readonly mvid?: Buffer;
readonly pinvoke?: {
readonly importName?: string;
readonly mappingFlags?: number;
readonly moduleName?: string;
};
readonly readyToRun?: boolean;
readonly references?: readonly string[];
readonly resourceData?: Buffer;
readonly targetFramework?: string;
readonly typeName?: string;
readonly typeNamespace?: string;
}
export const alternateMvid: Buffer;
export function buildManagedPeFixture(
options?: ManagedPeFixtureOptions,
): Buffer;
export function buildNativePeFixture(): Buffer;