Searched refs:MappedFile (Results 1 – 9 of 9) sorted by relevance
/external/openfst/src/lib/ |
D | mapped-file.cc | 28 const int MappedFile::kArchAlignment = 16; 30 MappedFile::MappedFile(const MemoryRegion ®ion) : region_(region) { } in MappedFile() function in fst::MappedFile 32 MappedFile::~MappedFile() { in ~MappedFile() 45 MappedFile* MappedFile::Allocate(size_t size) { in Allocate() 50 return new MappedFile(region); in Allocate() 53 MappedFile* MappedFile::Borrow(void *data) { in Borrow() 58 return new MappedFile(region); in Borrow() 61 MappedFile* MappedFile::Map(istream* s, const FstReadOptions &opts, in Map() 79 MappedFile *mmf = new MappedFile(region); in Map() 97 MappedFile* mf = Allocate(size); in Map()
|
D | util.cc | 65 for (int i = 0; i < MappedFile::kArchAlignment; ++i) { in AlignInput() 71 if (pos % MappedFile::kArchAlignment == 0) break; in AlignInput() 80 for (int i = 0; i < MappedFile::kArchAlignment; ++i) { in AlignOutput() 86 if (pos % MappedFile::kArchAlignment == 0) break; in AlignOutput()
|
/external/openfst/src/include/fst/ |
D | mapped-file.h | 44 class MappedFile { 46 virtual ~MappedFile(); 61 static MappedFile* Map(istream* s, const FstReadOptions& opts, size_t size); 65 static MappedFile* Allocate(size_t size); 71 static MappedFile* Borrow(void *data); 76 explicit MappedFile(const MemoryRegion ®ion); 79 DISALLOW_COPY_AND_ASSIGN(MappedFile);
|
D | const-fst.h | 131 MappedFile *states_region_; // Mapped file for states 132 MappedFile *arcs_region_; // Mapped file for arcs 176 states_region_ = MappedFile::Allocate(nstates_ * sizeof(*states_)); in ConstFstImpl() 177 arcs_region_ = MappedFile::Allocate(narcs_ * sizeof(*arcs_)); in ConstFstImpl() 227 impl->states_region_ = MappedFile::Map(&strm, opts, b); in Read() 242 impl->arcs_region_ = MappedFile::Map(&strm, opts, b); in Read()
|
D | compact-fst.h | 188 MappedFile *states_region_; 189 MappedFile *compacts_region_; 378 data->states_region_ = MappedFile::Map(&strm, opts, b); in Read() 398 data->compacts_region_ = MappedFile::Map(&strm, opts, b); in Read()
|
/external/llvm/lib/Support/ |
D | FileOutputBuffer.cpp | 90 auto MappedFile = llvm::make_unique<mapped_file_region>( in create() local 99 new FileOutputBuffer(std::move(MappedFile), FilePath, TempFilePath)); in create()
|
/external/llvm/utils/KillTheDoctor/ |
D | KillTheDoctor.cpp | 202 MappedViewOfFileScopedHandle MappedFile( in GetFileNameFromHandle() local 205 if (!MappedFile) in GetFileNameFromHandle() 209 MappedFile, in GetFileNameFromHandle()
|
/external/openfst/src/include/fst/extensions/ngram/ |
D | ngram-fst.h | 109 MappedFile *data_region = MappedFile::Allocate(size); in Read() 233 void Init(const char* data, bool owned, MappedFile *file = 0); 260 MappedFile *data_region_; 408 MappedFile *data_region = MappedFile::Allocate(storage); in NGramFstImpl() 511 MappedFile *data_region) { in Init()
|
/external/clang/lib/Tooling/ |
D | Tooling.cpp | 362 for (const auto &MappedFile : MappedFileContents) in run() local 363 Invocation.mapVirtualFile(MappedFile.first, MappedFile.second); in run()
|