/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...] |
/external/chromium/net/disk_cache/ |
mapped_file.h | 23 class MappedFile : public File { 25 MappedFile() : File(true), init_(false) {} 41 virtual ~MappedFile(); 50 DISALLOW_COPY_AND_ASSIGN(MappedFile);
|
block_files.h | 36 MappedFile* GetFile(Addr address); 65 bool GrowBlockFile(MappedFile* file, BlockFileHeader* header); 68 MappedFile* FileForNewBlock(FileType block_type, int block_count); 71 MappedFile* NextFile(const MappedFile* file); 80 bool FixBlockFileHeader(MappedFile* file); 91 std::vector<MappedFile*> block_files_; // The actual files.
|
storage_block.h | 34 StorageBlock(MappedFile* file, Addr address); 43 bool LazyInit(MappedFile* file, Addr address); 78 MappedFile* file_;
|
mapped_file_posix.cc | 16 void* MappedFile::Init(const FilePath& name, size_t size) { 35 bool MappedFile::Load(const FileBlock* block) { 40 bool MappedFile::Store(const FileBlock* block) { 45 MappedFile::~MappedFile() {
|
mapped_file_win.cc | 13 void* MappedFile::Init(const FilePath& name, size_t size) { 32 MappedFile::~MappedFile() { 45 bool MappedFile::Load(const FileBlock* block) { 50 bool MappedFile::Store(const FileBlock* block) {
|
storage_block_unittest.cc | 14 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); 34 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); 54 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
|
mapped_file_unittest.cc | 43 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); 58 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile);
|
block_files.cc | 223 MappedFile* BlockFiles::GetFile(Addr address) { 250 MappedFile* file = FileForNewBlock(block_type, block_count); 284 MappedFile* file = GetFile(address); 347 MappedFile* file = GetFile(address); 397 scoped_refptr<MappedFile> file(new MappedFile()); 440 bool BlockFiles::GrowBlockFile(MappedFile* file, BlockFileHeader* header) { 469 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { 471 MappedFile* file = block_files_[block_type - 1]; 492 MappedFile* BlockFiles::NextFile(const MappedFile* file) [all...] |
/external/chromium_org/net/disk_cache/ |
mapped_file.h | 24 class NET_EXPORT_PRIVATE MappedFile : public File { 26 MappedFile() : File(true), init_(false) {} 50 virtual ~MappedFile(); 62 DISALLOW_COPY_AND_ASSIGN(MappedFile); 68 explicit ScopedFlush(MappedFile* file) : file_(file) {} 73 MappedFile* file_;
|
mapped_file.cc | 11 bool MappedFile::Load(const FileBlock* block) { 16 bool MappedFile::Store(const FileBlock* block) { 21 bool MappedFile::Load(const FileBlock* block, 28 bool MappedFile::Store(const FileBlock* block,
|
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.
|
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 | 45 BlockHeader::BlockHeader(MappedFile* file) 298 MappedFile* BlockFiles::GetFile(Addr address) { 330 MappedFile* file = FileForNewBlock(block_type, block_count); 356 MappedFile* file = GetFile(address); 422 MappedFile* file = GetFile(address); 475 scoped_refptr<MappedFile> file(new MappedFile()); 522 bool BlockFiles::GrowBlockFile(MappedFile* file, BlockFileHeader* header) { 552 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { 554 MappedFile* file = block_files_[block_type - 1] [all...] |
/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.h | 31 class MappedFile : public FdFile { 39 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL) { 41 // Creates a MappedFile using the given file descriptor. Takes ownership of 43 explicit MappedFile(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) { 47 virtual ~MappedFile(); 92 DISALLOW_COPY_AND_ASSIGN(MappedFile);
|
mapped_file_test.cc | 47 MappedFile* f = new MappedFile; 48 CHECK(f->Open(good_path_, MappedFile::kReadWriteMode)); 57 MappedFile file; 64 MappedFile file; 65 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); 77 MappedFile file(fileno(f)); 84 MappedFile file; 85 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); 96 MappedFile file [all...] |
mapped_file.cc | 29 MappedFile::~MappedFile() { 32 int MappedFile::Close() { 39 bool MappedFile::MapReadOnly() { 61 bool MappedFile::MapReadWrite(int64_t file_size) { 84 bool MappedFile::Unmap() { 98 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { 114 int MappedFile::SetLength(int64_t new_length) { 119 int64_t MappedFile::GetLength() const { 127 int MappedFile::Flush() [all...] |
/external/llvm/lib/Support/ |
FileOutputBuffer.cpp | 78 OwningPtr<mapped_file_region> MappedFile(new mapped_file_region( 83 Result.reset(new FileOutputBuffer(MappedFile.get(), FilePath, TempFilePath)); 85 MappedFile.take();
|