NativeBinaryInspector class final
Validates that a file is a correctly-typed native binary for its expected target.
Checks magic bytes / headers for ELF, Mach-O, PE/COFF, and static archives. Optionally validates architecture from binary headers.
Constructors
- NativeBinaryInspector({bool validateArchitecture = true})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validateArchitecture → bool
-
Whether to read architecture information from binary headers and
compare it against the expected target.
final
Methods
-
inspect(
File file, {required NativeTarget target, required String canonicalName}) → NativeBinaryInfo - Inspects a file and returns validation results.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
formatDescription(
String canonicalName) → String - Returns a human-readable description of the expected binary format.