PeVersionResource class
The version resource as embedded in a PE image — the image view.
This is not the same question FlutterBin.getBinaryFileMetadata answers. That
one asks the OS, which follows MUI satellite resources and is locale
dependent; this one reports what the image itself carries. The two agree for
most binaries and differ for MUI-based ones (mstsc.exe reports
mstsc.exe.mui through the OS and mstsc.exe here).
Constructors
-
PeVersionResource({required String resourceName, required int languageId, required String fixedFileVersion, required String fixedProductVersion, required List<
PeStringTable> stringTables}) -
const
Properties
- fixedFileVersion → String
-
The 4-part
dwFileVersionfromVS_FIXEDFILEINFO, e.g.3.66.5.0. Empty when the resource carries no fixed file info.final - fixedProductVersion → String
-
The 4-part
dwProductVersionfromVS_FIXEDFILEINFO. Empty when the resource carries no fixed file info.final - hashCode → int
-
The hash code for this object.
no setterinherited
- languageId → int
-
The language id of the resource directory leaf, e.g. 1033.
final
- resourceName → String
-
How the
RT_VERSIONentry is named in the resource directory:#1for the conventional numeric id, or the name string for images that use one (somewindresbuilds emitVS_VERSION_INFO, which the Win32 version APIs cannot find because they look up the numeric id only).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stringTables
→ List<
PeStringTable> -
Every
StringFileInfotable found, in the order the image lists them.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBinaryFileMetadata(
) → BinaryFileMetadata - Maps the image view onto BinaryFileMetadata so callers can reuse code written against the OS-view API.
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
String key) → String? -
Reads
keyfrom the first table that has it, or null when no table does.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited