Home
last modified time | relevance | path

Searched refs:FileSize (Results 1 – 25 of 31) sorted by relevance

12

/third_party/boost/libs/interprocess/test/
Dwindows_shared_memory_mapping_test.cpp30 const std::size_t FileSize = 99999*2; in main() local
33 (create_only, names[i_name], read_write, FileSize); in main()
34 if(static_cast<std::size_t>(mapping.get_size()) < FileSize) in main()
42 ,FileSize/2 in main()
47 ,FileSize/2 in main()
48 ,FileSize - FileSize/2 in main()
54 ;i < FileSize/2 in main()
60 for(std::size_t i = FileSize/2 in main()
61 ;i < FileSize in main()
76 mapped_region region (mapping, read_only, 0, FileSize/2, 0); in main()
[all …]
Dfile_mapping_test.cpp40 const std::size_t FileSize = 99999*2; in main() local
44 file.seekp(static_cast<std::streamoff>(FileSize-1)); in main()
55 ,FileSize/2 in main()
60 ,FileSize/2 in main()
61 ,FileSize - FileSize/2 in main()
67 ;i < FileSize/2 in main()
73 for(std::size_t i = FileSize/2 in main()
74 ;i < FileSize in main()
93 boost::container::vector<unsigned char> memory(FileSize/2 +1); in main()
97 , FileSize/2); in main()
[all …]
Dshared_memory_mapping_test.cpp33 const std::size_t FileSize = 99999*4; in main() local
41 mapping.truncate(FileSize); in main()
52 ,FileSize/2 in main()
57 ,FileSize/2 in main()
58 ,FileSize - FileSize/2 in main()
64 ;i < FileSize/2 in main()
70 for(std::size_t i = FileSize/2 in main()
71 ;i < FileSize in main()
88 mapped_region region(mapping, read_write, 0, FileSize/2, 0); in main()
89 mapped_region region2(mapping, read_write, FileSize/2, FileSize - FileSize/2, 0); in main()
[all …]
Dxsi_shared_memory_mapping_test.cpp75 const std::size_t FileSize = 99999*2; in main() local
77 xsi_shared_memory mapping (create_only, names[i] ? key : xsi_key(), FileSize); in main()
84 mapped_region region2(mapping, read_write, FileSize/2, FileSize - FileSize/2, 0); in main()
93 mapped_region region (mapping, read_write, 0, FileSize, 0); in main()
97 for(std::size_t i = 0; i < FileSize; ++i){ in main()
109 for(std::size_t i = 0; i < FileSize; ++i, ++pattern){ in main()
Dmapped_file_test.cpp28 static const std::size_t FileSize = 1000; variable
57 …: mapped_file(boost::interprocess::create_only, get_filename().c_str(), FileSize, read_write, 0, … in mapped_file_creation_test_wrapper()
65 …: mapped_file(boost::interprocess::open_or_create, get_filename().c_str(), FileSize, read_write, … in mapped_file_creation_test_wrapper()
78 … mapped_file file1(create_only, get_filename().c_str(), FileSize, read_write, 0, permissions()); in main()
Dmanaged_mapped_file_test.cpp34 const int FileSize = 65536*10; in main() local
51 managed_mapped_file mfile(create_only, FileName, FileSize); in main()
70 managed_mapped_file mfile(create_only, FileName, FileSize); in main()
150 managed_mapped_file::grow(FileName, FileSize); in main()
160 if(mfile.get_size() != (FileSize*2)) in main()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DMemoryBuffer.cpp108 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize,
143 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument
150 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN()
231 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument
233 return getFileAux<MemoryBuffer>(Filename, FileSize, FileSize, 0, in getFile()
239 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
245 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument
252 auto Ret = getOpenFileImpl<MB>(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
259 WritableMemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument
261 return getFileAux<WritableMemoryBuffer>(Filename, FileSize, FileSize, 0, in getFile()
[all …]
DVirtualFileSystem.cpp115 FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize, in getBufferForFile() argument
121 return (*F)->getBuffer(Name, FileSize, RequiresNullTerminator, IsVolatile); in getBufferForFile()
192 int64_t FileSize,
218 RealFile::getBuffer(const Twine &Name, int64_t FileSize, in getBuffer() argument
221 return MemoryBuffer::getOpenFile(FD, Name, FileSize, RequiresNullTerminator, in getBuffer()
611 getBuffer(const Twine &Name, int64_t FileSize, bool RequiresNullTerminator, in getBuffer() argument
1774 getBuffer(const Twine &Name, int64_t FileSize, bool RequiresNullTerminator, in getBuffer() argument
1776 return InnerFile->getBuffer(Name, FileSize, RequiresNullTerminator, in getBuffer()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp105 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize,
169 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument
176 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN()
256 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument
258 return getFileAux(Filename, FileSize, FileSize, 0, in getFile()
263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
268 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument
276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
283 size_t FileSize, in shouldUseMmap() argument
308 if (FileSize == size_t(-1)) { in shouldUseMmap()
[all …]
/third_party/boost/libs/interprocess/example/
Ddoc_file_mapping.cpp41 const std::size_t FileSize = 10000; in main() local
50 fbuf.pubseekoff(FileSize-1, std::ios_base::beg); in main()
121 std::vector<char> vect(FileSize, 0); in main()
126 for(std::size_t i = 0; i < FileSize; ++i) in main()
Ddoc_managed_mapped_file.cpp44 const std::size_t FileSize = 1000; in main() local
51 managed_mapped_file mfile_memory(create_only, FileName, FileSize); in main()
72 managed_mapped_file::grow(FileName, FileSize*2); in main()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DWindowsResource.cpp627 uint64_t FileSize; member in llvm::object::WindowsResourceCOFFWriter
648 FileSize, "internal .obj file created from .res files"); in WindowsResourceCOFFWriter()
653 FileSize = COFF::Header16Size; in performFileLayout()
656 FileSize += 2 * COFF::SectionSize; in performFileLayout()
662 SymbolTableOffset = FileSize; in performFileLayout()
664 FileSize += COFF::Symbol16Size; // size of the @feat.00 symbol. in performFileLayout()
665 FileSize += 4 * COFF::Symbol16Size; // symbol + aux for each section. in performFileLayout()
666 FileSize += Data.size() * COFF::Symbol16Size; // 1 symbol per resource. in performFileLayout()
667 FileSize += 4; // four null bytes for the string table. in performFileLayout()
671 SectionOneOffset = FileSize; in performSectionOneLayout()
[all …]
DMachOObjectFile.cpp289 uint64_t FileSize = Obj.getData().size(); in parseSegmentLoadCommand() local
306 s.offset > FileSize) in parseSegmentLoadCommand()
324 BigSize > FileSize) in parseSegmentLoadCommand()
361 if (s.reloff > FileSize) in parseSegmentLoadCommand()
368 if (BigSize > FileSize) in parseSegmentLoadCommand()
380 if (S.fileoff > FileSize) in parseSegmentLoadCommand()
386 if (BigSize > FileSize) in parseSegmentLoadCommand()
418 uint64_t FileSize = Obj.getData().size(); in checkSymtabCommand() local
419 if (Symtab.symoff > FileSize) in checkSymtabCommand()
434 if (BigSize > FileSize) in checkSymtabCommand()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMemoryBuffer.h80 getFile(const Twine &Filename, int64_t FileSize = -1,
103 getOpenFile(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
126 getFileOrSTDIN(const Twine &Filename, int64_t FileSize = -1,
180 getFile(const Twine &Filename, int64_t FileSize = -1,
242 getFile(const Twine &Filename, int64_t FileSize = -1);
DVirtualFileSystem.h118 getBuffer(const Twine &Name, int64_t FileSize = -1,
258 getBufferForFile(const Twine &Name, int64_t FileSize = -1,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/
DInstrumentationMap.cpp188 loadYAML(sys::fs::file_t Fd, size_t FileSize, StringRef Filename, in loadYAML() argument
194 Fd, sys::fs::mapped_file_region::mapmode::readonly, FileSize, 0, EC); in loadYAML()
238 uint64_t FileSize; in loadInstrumentationMap() local
239 if (sys::fs::file_size(Filename, FileSize)) in loadInstrumentationMap()
243 if (FileSize == 0) in loadInstrumentationMap()
249 if (auto E = loadYAML(*FdOrErr, FileSize, Filename, Map.Sleds, in loadInstrumentationMap()
DTrace.cpp385 uint64_t FileSize; in loadTraceFile() local
386 if (auto EC = sys::fs::file_size(Filename, FileSize)) { in loadTraceFile()
390 if (FileSize < 4) { in loadTraceFile()
399 *FdOrErr, sys::fs::mapped_file_region::mapmode::readonly, FileSize, 0, in loadTraceFile()
DProfile.cpp267 uint64_t FileSize; in loadProfile() local
268 if (auto EC = sys::fs::file_size(Filename, FileSize)) in loadProfile()
274 *FdOrErr, sys::fs::mapped_file_region::mapmode::readonly, FileSize, 0, in loadProfile()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMemoryBuffer.h76 getFile(const Twine &Filename, int64_t FileSize = -1,
99 getOpenFile(int FD, const Twine &Filename, uint64_t FileSize,
134 getFileOrSTDIN(const Twine &Filename, int64_t FileSize = -1,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DNativeEnumInjectedSources.cpp46 uint64_t getCodeByteSize() const override { return Entry.FileSize; } in getCodeByteSize()
84 auto Data = readStreamData(**ExpectedFileStream, Entry.FileSize); in getCode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/MSF/
DMSFBuilder.cpp346 uint64_t FileSize = Layout.SB->BlockSize * Layout.SB->NumBlocks; in commit() local
347 auto OutFileOrError = FileOutputBuffer::create(Path, FileSize); in commit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/Native/
DRawTypes.h335 support::ulittle32_t FileSize; // Size of original source file. member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELF.h519 const uint64_t FileSize = Buf.size(); in sections() local
520 if (SectionTableOffset + sizeof(Elf_Shdr) > FileSize || in sections()
553 if (SectionTableOffset + SectionTableSize > FileSize) in sections()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DSampleProfReader.cpp789 uint64_t FileSize = 0; in getFileSize() local
791 FileSize = std::max(Entry.Offset + Entry.Size, FileSize); in getFileSize()
793 return FileSize; in getFileSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMachObjectWriter.cpp822 uint64_t FileSize = Layout.getSectionFileSize(&Sec); in writeObject() local
823 FileSize += getPaddingSize(&Sec, Layout); in writeObject()
831 SectionDataFileSize = std::max(SectionDataFileSize, Address + FileSize); in writeObject()

12