mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 05:16:16 +00:00
refactor(pe): share optional-header facts across readers
This commit is contained in:
1 parent
971b48f702
commit
deed39f7c4
9 files changed
+250
-105
No files matched your search
@@ -80,7 +80,7 @@ import {
|
||||
parseCodeViewData,
|
||||
claimsExecutableHeader,
|
||||
parseExecutableHeader,
|
||||
parsePeRecord,
|
||||
parsePeRecordFacts,
|
||||
peDebugDirectoryEntry,
|
||||
peRvaToFileOffset,
|
||||
type ExecutableMetadata,
|
||||
@@ -1304,7 +1304,8 @@ const readPeMetadata = async (
|
||||
optionalHeaderSize,
|
||||
signal,
|
||||
);
|
||||
return parsePeRecord(record, codeView);
|
||||
const parsed = parsePeRecordFacts(record, codeView);
|
||||
return parsed.ok ? ok(parsed.value.metadata) : parsed;
|
||||
};
|
||||
|
||||
const readPeCodeView = async (
|
||||
|
||||
Reference in new issue
Block a user