HomeSort by relevance Sort by last modified time
    Searched refs:MappedFile (Results 1 - 22 of 22) sorted by null

  /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);
compact-fst.h 188 MappedFile *states_region_;
189 MappedFile *compacts_region_;
378 data->states_region_ = MappedFile::Map(&strm, opts, b);
398 data->compacts_region_ = MappedFile::Map(&strm, opts, b);
    [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...]
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 99 MappedFile* File(Addr address);
343 scoped_refptr<MappedFile> index_; // The main cache index.
stats.cc 73 MappedFile* file = backend->File(address);
96 MappedFile* file = backend->File(address);
block_files_unittest.cc 118 MappedFile* file = files.GetFile(address);
backend_impl.cc 835 MappedFile* BackendImpl::File(Addr address) {
    [all...]
  /external/openfst/src/lib/
mapped-file.cc 28 const int MappedFile::kArchAlignment = 16;
30 MappedFile::MappedFile(const MemoryRegion &region) : 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;
  /external/llvm/lib/Support/
FileOutputBuffer.cpp 73 OwningPtr<mapped_file_region> MappedFile(new mapped_file_region(
98 Result.reset(new FileOutputBuffer(MappedFile.get(), FilePath, TempFilePath));
100 MappedFile.take();
  /external/chromium/net/tools/dump_cache/
dump_files.cc 132 scoped_refptr<disk_cache::MappedFile> index_file_;
148 index_file_ = new disk_cache::MappedFile;
192 disk_cache::MappedFile* file = block_files_.GetFile(address);
217 disk_cache::MappedFile* file = block_files_.GetFile(address);
  /external/llvm/utils/KillTheDoctor/
KillTheDoctor.cpp 198 MappedViewOfFileScopedHandle MappedFile(
201 if (!MappedFile)
205 MappedFile,
  /external/openfst/src/include/fst/extensions/ngram/
ngram-fst.h 109 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 548 milliseconds