mirror of
https://github.com/morluto/rea.git
synced 2026-11-13 18:22:42 +00:00
* refactor: remove redundant seams and preserve cleanup ownership * fix: validate PE resource extents before budget checks
25 lines
781 B
TypeScript
25 lines
781 B
TypeScript
import type {
|
|
ExecutionOptions,
|
|
ProviderIdentity,
|
|
} from "../AnalysisProvider.js";
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import type {
|
|
BinaryLayout,
|
|
InspectBinaryLayoutInput,
|
|
} from "../../domain/native/binaryLayout.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
|
|
/** Replaceable offline binary-layout provider; owns its parser and process protocol. */
|
|
export interface BinaryLayoutPort {
|
|
readonly identity: ProviderIdentity;
|
|
inspectAndClose(
|
|
input: InspectBinaryLayoutInput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<BinaryLayout, AnalysisError>>;
|
|
close?(): Promise<void>;
|
|
inspect(
|
|
input: InspectBinaryLayoutInput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<BinaryLayout, AnalysisError>>;
|
|
}
|