Lines Matching full:layout
236 // The directory has the following layout, where each item is a ulittle32_t: in computeDirectoryByteSize()
252 llvm::TimeTraceScope timeScope("MSF: Generate layout"); in generateLayout()
315 static void commitFpm(WritableBinaryStream &MsfBuffer, const MSFLayout &Layout, in commitFpm() argument
318 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator); in commitFpm()
321 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator, in commitFpm()
326 while (BI < Layout.SB->NumBlocks) { in commitFpm()
330 (BI < Layout.SB->NumBlocks) ? Layout.FreePageMap.test(BI) : true; in commitFpm()
341 MSFLayout &Layout) { in commit() argument
348 Layout = std::move(*L); in commit()
350 uint64_t FileSize = uint64_t(Layout.SB->BlockSize) * Layout.SB->NumBlocks; in commit()
352 if (FileSize > getMaxFileSizeFromBlockSize(Layout.SB->BlockSize)) { in commit()
364 }(Layout.SB->BlockSize); in commit()
369 FileSize, Layout.SB->BlockSize)); in commit()
373 bytesToBlocks(Layout.SB->NumDirectoryBytes, Layout.SB->BlockSize); in commit()
376 if (DirectoryBlockMapSize > Layout.SB->BlockSize) { in commit()
381 Layout.SB->BlockSize)); in commit()
392 if (auto EC = Writer.writeObject(*Layout.SB)) in commit()
395 commitFpm(Buffer, Layout, Allocator); in commit()
398 msf::blockToOffset(Layout.SB->BlockMapAddr, Layout.SB->BlockSize); in commit()
400 if (auto EC = Writer.writeArray(Layout.DirectoryBlocks)) in commit()
404 Layout, Buffer, Allocator); in commit()
406 if (auto EC = DW.writeInteger<uint32_t>(Layout.StreamSizes.size())) in commit()
409 if (auto EC = DW.writeArray(Layout.StreamSizes)) in commit()
412 for (const auto &Blocks : Layout.StreamMap) { in commit()