Lines Matching refs:File
31 ExplainOutputStyle::ExplainOutputStyle(InputFile &File, uint64_t FileOffset) in ExplainOutputStyle() argument
32 : File(File), FileOffset(FileOffset), P(2, false, outs()) {} in ExplainOutputStyle()
36 File.getFilePath()); in dump()
38 if (File.isPdb()) in dump()
67 std::make_unique<BinaryByteStream>(File.unknown().getBuffer(), in explainBinaryFile()
91 return FileOffset / File.pdb().getBlockSize(); in pdbBlockIndex()
95 uint64_t BlockStart = pdbBlockIndex() * File.pdb().getBlockSize(); in pdbBlockOffset()
105 return ((pdbBlockIndex() - 1) % File.pdb().getBlockSize() == 0); in isPdbFpm1()
108 return ((pdbBlockIndex() - 2) % File.pdb().getBlockSize() == 0); in isPdbFpm2()
116 return pdbBlockIndex() == File.pdb().getBlockMapIndex(); in isPdbBlockMapBlock()
120 const auto &Layout = File.pdb().getMsfLayout(); in isPdbStreamDirectoryBlock()
125 const auto &Layout = File.pdb().getMsfLayout(); in getPdbBlockStreamIndex()
135 if (FileOffset >= File.pdb().getFileSize()) { in explainPdbBlockStatus()
137 FileOffset, File.pdb().getFileSize()); in explainPdbBlockStatus()
143 bool IsFree = File.pdb().getMsfLayout().FreePageMap[pdbBlockIndex()]; in explainPdbBlockStatus()
159 uint32_t(File.pdb().getMsfLayout().SB->BlockSize)); in explainPdbSuperBlockOffset()
163 uint32_t(File.pdb().getMsfLayout().SB->FreeBlockMapBlock)); in explainPdbSuperBlockOffset()
167 uint32_t(File.pdb().getMsfLayout().SB->NumBlocks)); in explainPdbSuperBlockOffset()
171 uint32_t(File.pdb().getMsfLayout().SB->NumDirectoryBytes)); in explainPdbSuperBlockOffset()
175 uint32_t(File.pdb().getMsfLayout().SB->Unknown1)); in explainPdbSuperBlockOffset()
179 uint32_t(File.pdb().getMsfLayout().SB->BlockMapAddr)); in explainPdbSuperBlockOffset()
198 const MSFLayout &Layout = File.pdb().getMsfLayout(); in explainPdbFpmBlockOffset()
204 uint32_t FpmChunk = pdbBlockIndex() / File.pdb().getBlockSize(); in explainPdbFpmBlockOffset()
210 8 * (FpmChunk * File.pdb().getBlockSize() + pdbBlockOffset()); in explainPdbFpmBlockOffset()
211 if (DescribedBlockStart > File.pdb().getBlockCount()) { in explainPdbFpmBlockOffset()
219 cantFail(File.pdb().getMsfBuffer().readBytes(FileOffset, 1, Bytes)); in explainPdbFpmBlockOffset()
225 uint64_t BlockMapOffset = File.pdb().getBlockMapOffset(); in explainPdbBlockMapOffset()
244 discoverStreamPurposes(File.pdb(), Streams); in explainPdbStreamOffset()
248 const auto &Layout = File.pdb().getStreamLayout(Stream); in explainPdbStreamOffset()
250 getOffsetInStream(Layout.Blocks, FileOffset, File.pdb().getBlockSize()); in explainPdbStreamOffset()
256 DbiStream &Dbi = cantFail(File.pdb().getPDBDbiStream()); in explainPdbStreamOffset()
261 InfoStream &Info = cantFail(File.pdb().getPDBInfoStream()); in explainPdbStreamOffset()
275 auto DirectoryBlocks = File.pdb().getDirectoryBlockArray(); in explainPdbStreamDirectoryOffset()
276 const auto &Layout = File.pdb().getMsfLayout(); in explainPdbStreamDirectoryOffset()
278 getOffsetInStream(DirectoryBlocks, FileOffset, File.pdb().getBlockSize()); in explainPdbStreamDirectoryOffset()