/external/openfst/src/include/fst/ |
mapped-file.h | 44 class MappedFile { 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* Borrow(void *data) [all...] |
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_)); 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/ |
mapped_file.h | 24 class NET_EXPORT_PRIVATE MappedFile : public File { 26 MappedFile() : File(true), init_(false) {} 54 virtual ~MappedFile(); 66 DISALLOW_COPY_AND_ASSIGN(MappedFile); 72 explicit ScopedFlush(MappedFile* file) : file_(file) {} 77 MappedFile* file_;
|
mapped_file_posix.cc | 16 void* MappedFile::Init(const base::FilePath& name, size_t size) { 41 void MappedFile::Flush() { 44 MappedFile::~MappedFile() {
|
mapped_file_win.cc | 14 void* MappedFile::Init(const base::FilePath& name, size_t size) { 39 MappedFile::~MappedFile() { 52 void MappedFile::Flush() {
|
block_files.h | 36 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.
|
mapped_file.cc | 15 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() {
|
storage_block.h | 33 StorageBlock(MappedFile* file, Addr address); 42 bool LazyInit(MappedFile* file, Addr address); 86 MappedFile* file_;
|
mapped_file_avoid_mmap_posix.cc | 14 void* MappedFile::Init(const base::FilePath& name, size_t size) { 37 void MappedFile::Flush() { 52 MappedFile::~MappedFile() {
|
storage_block_unittest.cc | 17 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);
|
mapped_file_unittest.cc | 63 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);
|
block_files.cc | 46 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* file = block_files_[block_type - 1] [all...] |
storage_block-inl.h | 16 template<typename T> StorageBlock<T>::StorageBlock(MappedFile* file, 45 template<typename T> bool StorageBlock<T>::LazyInit(MappedFile* file,
|
backend_impl.h | 96 MappedFile* File(Addr address); 365 scoped_refptr<MappedFile> index_; // The main cache index.
|
backend_worker_v3.cc | 330 index_ = new MappedFile(); 441 MappedFile* file = File(address);
|
/external/openfst/src/lib/ |
mapped-file.cc | 28 const int MappedFile::kArchAlignment = 16; 30 MappedFile::MappedFile(const MemoryRegion ®ion) : region_(region) { } 32 MappedFile::~MappedFile() { 45 MappedFile* MappedFile::Allocate(size_t size) { 50 return new MappedFile(region); 53 MappedFile* MappedFile::Borrow(void *data) [all...] |
util.cc | 65 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;
|
/art/runtime/base/unix_file/ |
mapped_file_test.cc | 55 MappedFile* f = new MappedFile; 56 CHECK(f->Open(good_path_, MappedFile::kReadWriteMode)); 64 MappedFile* f = ::art::down_cast<MappedFile*>(file); 74 MappedFile file; 81 MappedFile file; 82 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); 94 MappedFile file(fileno(f), false); 101 MappedFile file [all...] |
mapped_file.cc | 31 MappedFile::~MappedFile() { 34 int MappedFile::Close() { 41 bool MappedFile::MapReadOnly() { 67 bool MappedFile::MapReadWrite(int64_t file_size) { 98 bool MappedFile::Unmap() { 112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { 129 int MappedFile::SetLength(int64_t new_length) { 134 int64_t MappedFile::GetLength() const { 142 int MappedFile::Flush() [all...] |
mapped_file.h | 31 class MappedFile : public FdFile { 44 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL), map_mode_(kMapReadOnly) { 46 // Creates a MappedFile using the given file descriptor. Takes ownership of 48 explicit MappedFile(int fd, bool check_usage) : FdFile(fd, check_usage), file_size_(-1), 53 virtual ~MappedFile(); 98 DISALLOW_COPY_AND_ASSIGN(MappedFile);
|
/external/llvm/lib/Support/ |
FileOutputBuffer.cpp | 76 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/ |
alternate_version_generator.cc | 151 class MappedFile { 153 MappedFile() : size_(), mapping_(), view_() { } 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_mapping [all...] |
/external/chromium_org/net/tools/dump_cache/ |
dump_files.cc | 68 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/ |
Tooling.cpp | 357 for (const auto &MappedFile : MappedFileContents) { 358 Invocation.mapVirtualFile(MappedFile.first, MappedFile.second);
|
/external/llvm/utils/KillTheDoctor/ |
KillTheDoctor.cpp | 201 MappedViewOfFileScopedHandle MappedFile( 204 if (!MappedFile) 208 MappedFile,
|