Searched refs:MappedFile (Results 1 - 25 of 27) sorted by relevance

12

/external/openfst/src/include/fst/
H A Dmapped-file.h44 class MappedFile { class in namespace:fst
46 virtual ~MappedFile();
56 // Returns a MappedFile object that contains the contents of the input
59 // or else mapping will fail. If mapping is not possible, then a MappedFile
61 static MappedFile* Map(istream* s, const FstReadOptions& opts, size_t size);
63 // Creates a MappedFile object with a new[]'ed block of memory of size.
65 static MappedFile* Allocate(size_t size);
67 // Creates a MappedFile object pointing to a borrowed reference to data.
68 // This block of memory is not owned by the MappedFile object and will not
71 static MappedFile* Borro
[all...]
H A Dconst-fst.h131 MappedFile *states_region_; // Mapped file for states
132 MappedFile *arcs_region_; // Mapped file for arcs
176 states_region_ = MappedFile::Allocate(nstates_ * sizeof(*states_));
177 arcs_region_ = MappedFile::Allocate(narcs_ * sizeof(*arcs_));
227 impl->states_region_ = MappedFile::Map(&strm, opts, b);
242 impl->arcs_region_ = MappedFile::Map(&strm, opts, b);
/external/chromium_org/net/disk_cache/blockfile/
H A Dmapped_file.h24 class NET_EXPORT_PRIVATE MappedFile : public File { class in namespace:disk_cache
26 MappedFile() : File(true), init_(false) {} function in class:disk_cache::MappedFile
54 virtual ~MappedFile();
66 DISALLOW_COPY_AND_ASSIGN(MappedFile);
72 explicit ScopedFlush(MappedFile* file) : file_(file) {}
77 MappedFile* file_;
H A Dmapped_file_posix.cc16 void* MappedFile::Init(const base::FilePath& name, size_t size) {
41 void MappedFile::Flush() {
44 MappedFile::~MappedFile() {
H A Dmapped_file_win.cc14 void* MappedFile::Init(const base::FilePath& name, size_t size) {
39 MappedFile::~MappedFile() {
52 void MappedFile::Flush() {
H A Dblock_files.h36 explicit BlockHeader(MappedFile* file);
101 MappedFile* GetFile(Addr address);
130 bool GrowBlockFile(MappedFile* file, BlockFileHeader* header);
133 MappedFile* FileForNewBlock(FileType block_type, int block_count);
136 MappedFile* NextFile(MappedFile* file);
145 bool FixBlockFileHeader(MappedFile* file);
156 std::vector<MappedFile*> block_files_; // The actual files.
H A Dmapped_file.cc15 bool MappedFile::Load(const FileBlock* block) {
20 bool MappedFile::Store(const FileBlock* block) {
25 bool MappedFile::Load(const FileBlock* block,
32 bool MappedFile::Store(const FileBlock* block,
39 bool MappedFile::Preload() {
H A Dstorage_block.h33 StorageBlock(MappedFile* file, Addr address);
42 bool LazyInit(MappedFile* file, Addr address);
86 MappedFile* file_;
H A Dmapped_file_avoid_mmap_posix.cc14 void* MappedFile::Init(const base::FilePath& name, size_t size) {
37 void MappedFile::Flush() {
52 MappedFile::~MappedFile() {
H A Dstorage_block_unittest.cc17 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
37 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
57 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
H A Dmapped_file_unittest.cc63 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
78 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
112 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
H A Dblock_files.cc46 BlockHeader::BlockHeader(MappedFile* file)
299 MappedFile* BlockFiles::GetFile(Addr address) {
331 MappedFile* file = FileForNewBlock(block_type, block_count);
357 MappedFile* file = GetFile(address);
423 MappedFile* file = GetFile(address);
474 scoped_refptr<MappedFile> file(new MappedFile());
520 bool BlockFiles::GrowBlockFile(MappedFile* file, BlockFileHeader* header) {
550 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) {
552 MappedFile* fil
[all...]
H A Dbackend_impl.h96 MappedFile* File(Addr address);
365 scoped_refptr<MappedFile> index_; // The main cache index.
H A Dstorage_block-inl.h16 template<typename T> StorageBlock<T>::StorageBlock(MappedFile* file,
45 template<typename T> bool StorageBlock<T>::LazyInit(MappedFile* file,
H A Dbackend_worker_v3.cc330 index_ = new MappedFile();
441 MappedFile* file = File(address);
H A Dblock_files_unittest.cc117 MappedFile* file = files.GetFile(address);
213 MappedFile* file = files.GetFile(address);
H A Dbackend_impl.cc708 MappedFile* BackendImpl::File(Addr address) {
1357 index_ = new MappedFile();
1427 MappedFile* file = File(address);
1453 MappedFile* file = File(address);
/external/openfst/src/lib/
H A Dmapped-file.cc28 const int MappedFile::kArchAlignment = 16;
30 MappedFile::MappedFile(const MemoryRegion &region) : region_(region) { } function in class:fst::MappedFile
32 MappedFile::~MappedFile() {
45 MappedFile* MappedFile::Allocate(size_t size) {
50 return new MappedFile(region);
53 MappedFile* MappedFile
[all...]
H A Dutil.cc65 for (int i = 0; i < MappedFile::kArchAlignment; ++i) {
71 if (pos % MappedFile::kArchAlignment == 0) break;
80 for (int i = 0; i < MappedFile::kArchAlignment; ++i) {
86 if (pos % MappedFile::kArchAlignment == 0) break;
/external/llvm/lib/Support/
H A DFileOutputBuffer.cpp76 std::unique_ptr<mapped_file_region> MappedFile(new mapped_file_region(
81 Result.reset(new FileOutputBuffer(MappedFile.get(), FilePath, TempFilePath));
83 MappedFile.release();
/external/chromium_org/chrome/installer/test/
H A Dalternate_version_generator.cc151 class MappedFile { class in namespace:__anon5736
153 MappedFile() : size_(), mapping_(), view_() { } function in class:__anon5736::MappedFile
154 ~MappedFile();
164 DISALLOW_COPY_AND_ASSIGN(MappedFile);
165 }; // class MappedFile
167 MappedFile::~MappedFile() {
170 PLOG(DFATAL) << "MappedFile failed to unmap view.";
180 bool MappedFile::Initialize(base::File file) {
375 MappedFile image_mappin
[all...]
/external/chromium_org/net/tools/dump_cache/
H A Ddump_files.cc68 disk_cache::MappedFile* file = block_files.GetFile(address);
176 scoped_refptr<disk_cache::MappedFile> index_file_;
191 index_file_ = new disk_cache::MappedFile;
235 disk_cache::MappedFile* file = block_files_.GetFile(address);
260 disk_cache::MappedFile* file = block_files_.GetFile(address);
/external/clang/lib/Tooling/
H A DTooling.cpp357 for (const auto &MappedFile : MappedFileContents) {
358 Invocation.mapVirtualFile(MappedFile.first, MappedFile.second);
/external/llvm/utils/KillTheDoctor/
H A DKillTheDoctor.cpp201 MappedViewOfFileScopedHandle MappedFile(
204 if (!MappedFile)
208 MappedFile,
/external/openfst/src/include/fst/extensions/ngram/
H A Dngram-fst.h109 MappedFile *data_region = MappedFile::Allocate(size);
233 void Init(const char* data, bool owned, MappedFile *file = 0);
260 MappedFile *data_region_;
408 MappedFile *data_region = MappedFile::Allocate(storage);
511 MappedFile *data_region) {

Completed in 6245 milliseconds

12